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

Checkbox disabled in KendoUI grid

0 Answers 247 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sree Rachakonda
Top achievements
Rank 1
Sree Rachakonda asked on 03 Sep 2012, 05:07 AM
Hi there,
I have grid inside a TabStrip and the grid has a boolean column which is shown as checkbox... this is perfectly fine. But now my concern is even though my grid's editable property is set to true the check box is disabled. i tried adding the checkbox using a template column.
I am getting this error: Inline markup blocks (@<p>Content</p>) cannot be nested.  Only one level of inline markup is allowed. Below are the two ways i tried setting the checkbox column.
columns.Template(p => @<text><input type="checkbox" value="" #= @p.Approved?checked="checked":"" #  /></text>).Width(60).Title("").HeaderHtmlAttributes(new { style = "background-image:url(../../Content/ImagesAite/th_appr.png); " }).HtmlAttributes(new { style = "text-align:center" });<br>     columns.Bound(p => p.Approved).Width(60).Title("").HeaderHtmlAttributes(new { style = "background-image:url(../../Content/ImagesAite/th_appr.png); " }).HtmlAttributes(new { style = "text-align:center" });<br>
Also the alignment of the checkbox column is left aligned even though i set the text-align property of the column to center. Also i would like to know to fix the height of the grid rows.... is it possible to switch off word wrapping.... 

Thanks in advance

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Sree Rachakonda
Top achievements
Rank 1
Share this question
or