This question is locked. New answers and comments are not allowed.
As outlined in this thread, I am dynamically generating my columns based on custom attributes as I need the grid to bind to dynamically typed objects. Everything is going just fine, however I am trying to add a checkbox column, and ClientTemplate does not seem to be working. Here is the code I have:
However, when my grid renders, I do not get a checkbox, instead I get the actual value of the property.
Now, maybe ClientTemplate isn't the right way to go? I tried to get columnFactory.Template() to work, but to no avail.
Perhaps Kemal could chime in from the original thread? Thanks.
columnFactory.Bound(keyProperty.Name) .ClientTemplate(string.Format("<input name='checkedRecords' type='checkbox' value='<%= {0} %>' />", keyProperty.Name)) .Title("") .Width(50) .HtmlAttributes(new { style = "text-align: center;" }) .Sortable(false);However, when my grid renders, I do not get a checkbox, instead I get the actual value of the property.
Now, maybe ClientTemplate isn't the right way to go? I tried to get columnFactory.Template() to work, but to no avail.
Perhaps Kemal could chime in from the original thread? Thanks.