change the "editrules" value

Questionschange the "editrules" value
pierremata asked 6 years ago

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
pierre mata answered 6 years ago

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”….

 

Abu Ghufran Staff answered 6 years ago

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);

 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

10 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?