I added a RowTemplate and in the RowTemplate I have a <asp:checkbox> and I want to set the columnKey to a column named "HasBattery". The problem is that <asp:checkbox> is rendered as a <span> and within the <span> a <input> element. How can this correctly be done?
Hello,
You can use the built in UltraWebGrid CheckBox. You can add this column with two ways: The first is design time:
Add new attribure (new column):
<igtbl:UltraGridColumn Type="CheckBox"></igtbl:UltraGridColumn>
in tag Colums of Bands tag
And second is run time from code-behind:
protected void Page_Load(object sender, EventArgs e)
{
UltraWebGrid1.Columns.Insert(0, "fromCode");
UltraWebGrid1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.CheckBox;
this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].Header.Caption = "code-behind:";
}
Hope this helps.
Hi Ivan,
I have a checkbox column and the CellClickActionDefault is Row Select.
If I want to check the checkbox on click of it, it doesnt check it. I have a BeforeRowActivateHandler (javascript).
How can I do this?
Thanks,
Pandu