I have followed the steps in the following article to create a template column programmatically:
http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html
However, it doesn't seem to address how to make it work if you allow edits. I set the EditItemIndex like this:
But it has no effect since in the template column the Enabled property of the checkbox is being set to false. How do I detect if the checkbox should be enabled or not in my custom template class so that setting the EditItemIndexes actually works?
Thanks!
http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html
However, it doesn't seem to address how to make it work if you allow edits. I set the EditItemIndex like this:
RadGridCoverages.EditIndexes.Add(RadGridCoverages.Items.Count - 1) |
But it has no effect since in the template column the Enabled property of the checkbox is being set to false. How do I detect if the checkbox should be enabled or not in my custom template class so that setting the EditItemIndexes actually works?
Thanks!