tonytomov/jqGrid — Issue #224: "options" parameter should be added to dataInit event
Author: migajek
Created: 2011-12-21 16:10:09+00:00
State: open

Hi,
dataInit should take not only "elem" parameter but also "options" (i.e. colmodel's editoptions).
Currently each function has to be extact-field-specific, while passing the extra parameters (editoptions) would allow for egenric functions, like function to initialize autocomplete.

Consider following example
function jq_makeAutocomplete(elem, opts){
$(elem).autocomplete('source': opts.ac_url);
}

// ...

{'editoptions': { 'dataInit': jq_makeAutocomplete; 'ac_url': '/autocmplete/url'}}