Hi,
Please help me in providing sample to achieve the following in 13.1.
TemplatedColumn Delete = new TemplatedColumn();
Delete.IsBound = false;Delete.AllowUpdate = AllowUpdate.Yes;Delete.Type = ColumnType.CheckBox;
Expecting your reply at the earliest.
Thanks in advance.
Hello Jeevitha Manickam,
Thank you for posting in our forums!
The equivalent of the TemplatedColumn in the WebDataGrid is the TemplateDataField.
Given the code you provided, we also provide an UnboundCheckBoxField, which may suit your needs better. You can find more information on the available column types in our documentation.
You can also find online samples for the checkbox column and the column templates here:
http://ko.infragistics.com/samples/aspnet/data-grid/checkbox-column
http://ko.infragistics.com/samples/aspnet/data-grid/using-cell-and-column-templates
If you have any further questions or concerns with this, please let me know.
Hi Michael,
I tried using UnboundCheckBoxField. But i dont find the following properties - HeaderTemplate,IsBound,AllowUpdate in it.
Earlier,
TemplatedColumn Delete = new TemplatedColumn();Delete.HeaderTemplate = new HeaderButtonColumnTemplated(ListItemType.Header,DeleteText(),this,Webdatagrid1.ClientID,sUrl);Delete.IsBound = false;Delete.AllowUpdate = AllowUpdate.Yes;
Please let me know what are the corresponding ones for these in UnboundCheckBoxField.
Kindly Clarify.
The UnboundCheckBoxField is not a 1-to-1 conversion of the old TemplatedColumn. The AllowUpdate property is handled through the CellEditing behavior. Since you are using the UnboundCheckBoxField, the equivalent of IsBound is automatically false.
The HeaderTemplate equivalent can be accessed through the Header.TemplateId property. You can find more information on using templates in the WebDataGrid here:
http://help.infragistics.com/doc/ASPNET/2014.2/CLR4.0/?page=WebDataGrid_Using_the_Template_Collection.html
If you need further assistance with this, please let me know.
Thanks for the info.
Please let me know if you need further assistance with this issue and I will be glad to help.
You are welcome! If you have any further questions or concerns with this, please let me know.