I'm working on implementing multi checkbox grid filtering in a project. I have a requirement where I need to have a different value for the display text than the value that is filtered on. I'm basically looking for the properties dataTextField and dataValueField that are found on other controls such as a multiselect. Using this example to explain further; how do I use the multi checkbox filter to filter on the Category field by CategoryID but still display the CategoryName as the filter display?
Hi Justin,
Could you please elaborate on clarifying the case? I am not sure I understand it correctly.
Having the current Dojo example:
What property is the column in question bound to? The Category column is currently bound to Category.CategoryName property and the filtering happens by the same CategoryName property.
If you bind the column to the object Category, you will lose the filtering as the Grid is designed to work with flat data such as strings, integers, dates, booleans, and so on. To overcome this you would have to remove the default filtering and create a custom one on click of the filter button which I do not recommend as it might lead to unexpected behavior.
Regards,
Nikolay
Hello, Justin,
Please refer to the modified Dojo example. The CategoryName is displayed in the Grid, but the CategoryIDs will be displayed in the Filter popup. Let me know if that is what you are looking for.
Hello, Justin,
Could you please check the modified example and let me know if it behaves as expected?