This is a migrated thread and some comments may be shown as answers.

Boolean filter displays wrong label after selection

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Sep 2019, 08:38 PM

Hello,

I have followed this Knowledge base article to adjust the boolean filters of the grids on my site : https://docs.telerik.com/kendo-ui/knowledge-base/grid-boolean-dropdownlist-filter

I am experiencing an issue also found in the preview available at the bottom of this article.

To experience the problem, try filtering by Discontinued column and select the False option. 

When the false option is selected in the dropdownlist, the "True" value is displayed but the "False" option is really selected. If you then hit the filter button, only the false values are shown as expected, but the label was showing "True". The behavior is as expected but the information shown to the user is misleading.

Any help on this problem would be appreciated!

Thank you very much!

David

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 12 Sep 2019, 12:18 PM
Hi David,

A possible workaround would be to set the values of the drop down as strings.

e.g.

{ text: "True", value: 'true' },
{ text: "False", value: 'false' }

Below you will find a small sample which demonstrates the above approach:


Please let me know if this works for you.

I look forward to your reply.


Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
David
Top achievements
Rank 1
answered on 17 Sep 2019, 03:00 PM

Thank you Georgi!

This indeed fixed my problem :)

Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Georgi
Telerik team
David
Top achievements
Rank 1
Share this question
or