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

Conditional Column code does not work

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 01 May 2013, 02:38 PM
What is wrong with this code??

columns.Bound(o => o.Resolved).
ClientTemplate("# if (Resolved == true) { # <input type='checkbox' checked='checked' /> # } #")

This displays nothing in the column. All values are true for Resolved.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 May 2013, 03:00 PM
Hello Eric,

The provided code is OK and works on my side. Please make sure that the Resolved field is actually boolean.


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