Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
UltraWebGrid, select row to select a checkbox
posted

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">

<RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>

</Header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn Key="ColValue" Hidden="True" BaseColumnName="ColValue">

<Footer Key="ColValue">

<RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>

</Footer>

<Header Key="ColValue">

<RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>

</Header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn Key="ColDisplay" Width="100%" BaseColumnName="ColDisplay">

<Footer Key="ColDisplay">

<RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>

</Footer>

<Header Key="ColDisplay">

<RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>

</Header>

</igtbl:UltraGridColumn>

</Columns>

Thanks.

  • 48586
    posted

     

    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.

  • 48586
    posted

    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.