Team, implemented a grid with one of the columns having a combo filter. Filter drop down is static list except for one use case. If json has null for the field, grid needs to display N/A . And also applying filter on N/A in combo filter should filter the grid.
Below is able to show N/A when value is null, however filter grid when N/A is selected to show rows with null values on that column is not working. Tried few options with no success. Request your help
Are you using JSON data for renderer, you can't pass a function inside JSON, you should use javascript object for this.
And using a JS object would make it work.
If you have any other questions or concerns, please don't hesitate to reach out to us.
Thank you. Just to clarify on the ask
a. The renderer code is working fine above . Which is , when json payload underlying has null for the field it displays N/A on the grid
b. THe combo box filter for column is static list of values given in items . THat displays fine as well
c. When i select N/A value from the filter, somehow grid is not filtering the data although there is matching values -- how to ensure this happens?
If you want the input field value "N/A" to mean "filter in records where the field is the empty string", then see this tweak to the online Grid filterbar example:
Screenshot 2024-08-07 at 15.14.42.png (622.97 KiB) Viewed 433 times
Yes did check with null too, sorry forgot to mention. Grid shows empty value when null , so thought of checking this way too. Didnt work both ways. Thank you.