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 Pandu,
I think the following forum thread might be related to what you need - the suggestion there is to use the AfterCellUpdateHandler - hope this is relevant.
http://forums.infragistics.com/forums/p/2133/14450.aspx#14450
If not, then maybe the CellClickAction select the row and cancel the events, that is way it cannot propagate down to the checkbox and make it check/uncheck. Is it possible in the client-side before event handler to locate the cell using the client-side object model of the GRID and then in the cell to locate the checkbox using getElementByTagName on the cell element to locate all <input> fields and check it there?
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
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.