Hello,
We still use jqGrid v. 3.6.2 and cannot upgrade easily since we did some custom code mods, however I'd like to know whether the following is a behavior, a bug, or some misunderstanding from me.
Server-side, I've put the “required:true” in colModel editrules for a mandatory field.
When clicking on an edit inline button to save a new row, the javascript code I run is the following :
$('#WEBCONT___Row1__Cell0WL2').saveRow('1', false, 'clientArray');
callSaveList('ListUserInstitution','WEBCONT___Row1__Cell0WL2','1');
nanoNewRow('WEBCONT___Row1__Cell0WL2', '1','W3sidXNlcl9pZCI6IjEwIn1d');
saveRow() performs the fields check and since a mandatory field isn't filled in (I save a new empty row) I get a modal dialog complaining about it. It's ok but what bugs me is that the callSaveList() ajax call is made despites it shouldn't (data is considered incorrect and should not be sent to server).
This wiki page doesn't deal with my test case :
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing&s=saverow
saveRow() returns the elements it deals with (dom element, “return this.each(function(){ …”) instead of true/false which I could then use to decide to save or not the data.
Is there a bug or a lack of documentation that would confuse me ? Thanks for your feedback and my apologies for dealing with jqGrid 3.6.2.
Barbara
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top