Hello Oleg,
Thanks for the test case.
Now why the masked plugin work in editing modules and does not work in searchFilter?
The reason for this is that in editing modules we have “uniquie” id's where we bind the masked plugin and this work ok.
Search Filter work little different.
1. When we have custom dataInit and DataEvents we create a template for all these fields.
2. When we select such one we activate the appropriate table row element.
3. When we click the add button we clone the template and insert it after the active row.
In order to ilustrate this:
Create a form (not using jqGrid) something like this:
Label |
|
Apply masked plugin to input of class= 'field1'
jQuery(“.field1″).mask(“99.99″);
Then clone the table row of class'myclass' and insert it before or after this row
var row = jQuery(“.myclass”);
var newRow = row.clone(true).insertAfter(row);
See if the plugin will work – it will not work.
This is a way that searchFilter works.
In order to fix we should unbind all existing events of the cloned row elements and bind it again.
Will try to fix this, but not in the upcomming 3.7
Best Regards
Tony