|Issue ID# 12||dataEvents in searchoptions (colModel options) not working|
|Status: Resolved||Version: 4.8||Priority: 3|
|Assigned to:||Submitted by: mayaso||Attached file:|
2015-09-16 16:38:40 UTC
2017-01-12 11:21:30 UTC
Version 5.0.0 of jqGrid JS
Using the filterToolbar, defining some dataEvents to be triggered when the user enter some key or do some action on the search inputs doesn't work, this was working in previous versions of jqGrid (4.6) but now changing to version 5.0.0 this no longer works.
I've created a jsbin based on one of your examples in http://www.guriddo.net/demo/guriddojs/ (Search Toolbar with search options) and added dataEvents inside searchoptions ('Ship Name' field) where can be reproduced, it should trigger an alert when clicking on the field or entering some key, but it doesn't.
I've just added the dataEvents as in the docs (and the same code working with jqGrid 4.6):
Looking at the code in github, it looks like the dataEvents of the searchoptions are always overwritten when they are going to be bound with bindEv function ('soptions.dataEvents = [...]'), so the ones I'm defining within colModel are going to be lost.