Hi there,
I encountered an unexpected behaviour when using the jqGrid 4.1.2 filtertoolbar with colModel definitions that contained a custom set of searchoptions (sopt). The filtertoolbar search is always using the first of the defined custom searchoptions, disregarding the defaultSearch value set for the filtertoolbar.
Sample colModel definition:
|
1 2 3 4 5 6 7 |
colModel: [<br /> name: 'Name',<br /> index: 'Name',<br /> searchoptions: {<br /> sopt: ['eq', 'ne', 'bw', 'cn'],<br /> }<br /> ]<br /> |
With this colModel, the search is always using the operator “eq”.
I was expecting following behaviour: if the custom searchoptions contains the defaultSearch value specified by the filtertoolbar, use the default; otherwise use the first of the custom searchoptions.
Following change fixes the problem (jqGrid 4.1.2, Line
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top