Select2 4.0.0 ajax
Select2 4.0.0 ajax

in Editor
hi!
i'm using the select2 plugin with remote data sources using AJAX requests
when editing a row, the plugin couldn't initialize the field with the stored data value
this is how i fixed the problem
set: function ( conf, val ) {
// old
//conf._input.select2( 'val', val );
// new
_fieldTypes.select2._addOptions( conf, [val] );
$(conf._input).trigger('change');
}
This discussion has been closed.
Replies
Thanks for posting this - I'll look into what is going wrong with the plug-in as it stands and make the changes you suggest.
Regards,
Allan
Hi,
This solved a problem for me tonight! So thanks cybersapien.