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

Problems with Filter Multi Checkboxes

5 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 10 Nov 2015, 05:16 PM

Hi,

I have a problem with Filter Multi Checkboxes in the grid, as can be seen in the example below:

 http://dojo.telerik.com/Evuvu

​When clicking on the header of the first column, the text of the checkbox is shown as a string,  instead of being treated as HTML. How can I avoid this behaviour?

Thanks in advance for any ideas.

5 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 1
answered on 10 Nov 2015, 10:16 PM

Here is another very  simple example

http://dojo.telerik.com/eGAya

 

0
Viktor Tachev
Telerik team
answered on 11 Nov 2015, 12:49 PM
Hello Stefan,

If you would like to customize the items in the CheckList filter you can define a template. The approach is illustrated in the following example.



Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Stefan
Top achievements
Rank 1
answered on 12 Nov 2015, 12:43 PM

Hello Viktor Tachev,

 thank you very much for your reply. That was helpful.

I would like however, for the filter to work, even when the data contains html. I have modified the example to show this. How can I achieve filtering in this case?

 

http://dojo.telerik.com/eGAya/8

0
Stefan
Top achievements
Rank 1
answered on 12 Nov 2015, 12:58 PM
Please see screen shots below, for better visualisation of the problem
0
Viktor Tachev
Telerik team
answered on 13 Nov 2015, 12:58 PM
Hello Stefan,

In the last sample single quotes are used for the href in the anchor element. Also single quotes are used for the value of the checkbox and this results in invalid HTML.

Try to use double quotes for the value attribute and the issue should be resolved.



Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or