Hi, I would like to figure out how to save the row the moment a field has changed. I tried something like:
…
onSelectRow: function(id) {
if(id && id != lastsel){
jQuery(’#list1′).restoreRow(lastsel);
jQuery(’#list1′).editRow(id,true,pickdates);
jQuery(â€:inputâ€,â€#list1″).change(function() {jQuery(â€#list1″).saveRow(id); return true;});
lastsel=id;
}
},
But it works fine for dropdown field changes. But doesn’t when it’s a text field. I suspect it has something to do with the change event not being completed before the ajax request is sent. I can’t figure out how to do it ‘after’ the edit has been done rather than ‘while’ it’s being done.
It might be a good idea to expose the savedRow hash. In that way, I’m able to set a value before the restoreRow is called. s
Thanks for the plugin.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top