With Version 11.1, how can I allow UltraWebGrid row selection to put or clear checkbox on the selected row?
I'm looking for behavior similar to "label for" on a checkbox, so that when a row is selected, it will give or clear checkbox in a given row. Here is the column markup.
<Columns>
<igtbl:UltraGridColumn Key="ColID" Hidden="True" DataType="System.Int32" BaseColumnName="ColID">
<Footer Key="ColID"></Footer>
<Header Key="ColID"></Header>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn Key="ColSelect" Width="30px" Type="CheckBox" DataType="System.Boolean" BaseColumnName="ColSelect"
AllowUpdate="Yes">
<Footer Key="ColSelect">
<RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
</Footer>
<Header Key="ColSelect">
</Header>
<igtbl:UltraGridColumn Key="ColValue" Hidden="True" BaseColumnName="ColValue">
<Footer Key="ColValue">
<RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
<Header Key="ColValue">
<igtbl:UltraGridColumn Key="ColDisplay" Width="100%" BaseColumnName="ColDisplay">
<Footer Key="ColDisplay">
<RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>
<Header Key="ColDisplay">
</Columns>
Thanks.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
What you could do in your case is to add ClientSide event for CellClick for example, and to use following JS in order to change cell value:
function UltraWebGrid1_CellClickHandler(gridName, cellId, button){
//Add code to handle your event here.
//Current clicked cell
var cell = igtbl_getCellById(cellId);
var boolCell = cell.Row.getCell(1);
boolCell.setValue(!boolCell.getValue());
}
Please let me know if you have any further questions.