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

How to set checkbox column in grid?

1 Answer 803 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Iron
Vincent asked on 16 Nov 2018, 02:10 PM
I have a table, the column "IsSampling" is bool type(or nvarchar type, value is 'true' or 'false'). I set the model type to Boolean, it can be change to a checkbox in cell edit mode. I want to show checkbox checked or unchecked in grid instead of true or false. How can I get it.

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 21 Nov 2018, 02:06 PM
Hi Vincent,

In order to set the checkbox column, use a template and set the check state depending on the value that is coming from the data source. You can check out the following how-to which demonstrates how this could be achieved: 

Use Checkbox Column Templates and Edit


Kind regards,
Tsvetomir
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.
Tags
Grid
Asked by
Vincent
Top achievements
Rank 1
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or