tonytomov/jqGrid — comment on commit a93beb321e16218d5d18096bd7d571aa4748e21b
File:  line 0
By OlegKi:

Hi wildraid,
Hi Tony,

I personally hate arrays having elements of the mixed type like `[1, 'One']`. I would prefer to use objects instead of arrays in the case, like `{value: 1, option: 'One'}`. The array of the items `[{value: 1, option: 'One'}, {value: 2, option: 'Two'}, ...]` will "hold" the order of the elements, but not have objects of different type in an array.

The feature which I personally really miss is the text for "unfiltered" option in the select element. The problem is that select in the searching toolbar should contain an option like `
Any
`, `
Unfiltered
` or just `
`. Currently `value` and `dataUrl` will **be shared** in `searchoptions` or `editoptions`. The "unfiltered" options should exist only in select for the searching toolbar and not in the searching dialog.

The best way to solve the problem in my opinion would be introduction of the new option `unfilteredText` and new property in `searchoptions` with the same name. The default value could be set in the `i18n/grid.locale-XX.js` file and could be overwritten in `searchoptions`. The code of `grid.custom.js` could be modified to add the option as the first option in the select inside of the code of `filterToolbar` if no other options with `value=""` already exist in `value` or `dataUrl`. Tony, if the suggestion is interesting for you I could post the corresponding suggestion for the changes in the jqGrid code.

Another interesting feature could be three-state checkboxs which could be very helpful in the searching toolbar to filter the column having "checkbox" formatter. The "undefined" or "unfiltered" state is what one miss. In the searching dialog one can use the standard checkbox in the case.

Best regards
Oleg