General Category > Help for ParamQuery Pro
cell editor broke when upgraded to PRO version
(1/1)
jpantona:
I had the datePicker editor and the dropDownList editor working as shown in the above example. Then I upgraded to the pqgrid PRO and it stopped working... any ideas?
paramvir:
The editor API is bit changed in Pro.
Instead of
editor: function(ui){ }
&
getEditCellData: function(ui){ }
you have to use
editor: { type: function(ui){ }, getData :function(ui){ } )
http://paramquery.com/pro/api#option-column-editor
paramvir:
This is an example for custom editors (jQueryui autocomplete, datepicker and select lists)
http://paramquery.com/pro/demos/editing_custom
jpantona:
Ok. That helped. Thank you. However, it took awhile to get that to work because, depending on the verion of jQuery, this portion of the sample:
--- Code: --- $inp.autocomplete({
source: (dataIndx == "books" ? books : countries),
minLength: 0
}).focus(function () {
//open the autocomplete upon focus
$(this).data("autocomplete").search($(this).val());
});
--- End code ---
Needs to change to:
--- Code: ---$inp.autocomplete({
source: arr,
minLength: 0
}).focus(function () {
//open the autocomplete upon focus
$(this).data("uiAutocomplete").search($(this).val());
});
--- End code ---
In summary, 'autocomplete' needed to change to uiAutocomplete.
Navigation
[0] Message Index
Go to full version