Hello Abu, i want to change the “editrules” property when edit a record, means that edit a record depending the value of the another field change the value of the property
2 Answers
sorry… i want to say that when i edit a record, depending the value of the another field, change the value of the property “editrules”….
Such modifications can be done in afterShowForm event. Refer demos/editing/dialog-layout.php (line 70,91)
And you can edit editrules like:
var prop = $(‘#list1’).jqGrid(‘getColProp’, ‘total’);
alert(prop.editrules.required);
Your Answer