jQgrid editrules custom_func showing cell value of "select column" in its beginning of error message -
i using editrules custom_func preventing user enter same record in jqgrid. have define custom_func on column colmodel defination follows :
{ name: 'bo', index: 'bo', width: 40, editable: true, edittype: 'select', /*formatter: 'select',*/ editrules: { custom: true, custom_func: function (value, colname) { return customfunction.call(this, value, colname, ogrid); } },
i populating select column of jqgrid id(uid) : name(text) code doing work , showing error message, problem error message showing uid value such
b66a2719-b88a-427e-8904-816fe8e60fde creating duplicate record . please give role selected bo type.
, don't want id value in error message. how should remove value???? suggestions???
you have update jqgrid new version fix problem. reason easy. inline editing module used in jqgrid 4.4.4 following lines (see here)
cv = $.jgrid.checkvalues(tmp[nm],i,$t); if(cv[0] === false) { cv[1] = tmp[nm] + " " + cv[1]; return false; }
where tmp[nm]
contains in case text b66a2719-b88a-427e-8904-816fe8e60fde
. jqgrid 4.5.2 uses same code. 1 have no way remove prefixing tmp[nm] + " "
.
recently published version 4.5.4 changes lines following (see here).
cv = $.jgrid.checkvalues.call($t,tmp[nm],i); if(cv[0] === false) { return false; }
so have update jqgrid 4.5.4 or make corresponding changes in copy of jqgrid code.
Comments
Post a Comment