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

Chekbox in grid editable row

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 24 Jan 2013, 09:54 AM
Hi,

I have a GridView which is populated from the database.
Each row in the GridView can be edited.

One column in the GridView bound to boolean (bit) filed ("IsEnabled").
When Grid row is in edit mode this "IsEnabled" filed is changed to checkbox.

I would like the change checkbox with image (two images, one for checked state, another for the unchecked state).
Is that possible and how to do it?

Tnx,
Siam

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 25 Jan 2013, 07:15 AM
Hello Juan,

Yes it is possible you need to use template column instead which creates different img elements based on the value of that field. 

http://docs.kendoui.com/api/web/grid#columnstemplate-string
http://docs.kendoui.com/getting-started/framework/templates/overview

Kind Regards,
Petur Subev
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
Juan
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or