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
3338
how can you slect entire row when a cell is clicked on the client?
posted

Title says what I am trying to accomplish... client side, if cell is clicked, entire row should be selected. Row selectors are on.

 

Parents
No Data
Reply
  • 7694
    Verified Answer
    posted

     Hello,


    You can use the property EnableInternalRowsManagement="true" of DisplayLayout tag
    And JS code for selecting row in the client side. Please take a look at the code below:

    <DisplayLayout>
    <ClientSideEvents CellClickHandler="Fire" />

     

    JS code for selecting row:
    <script type="text/javascript">

            function Fire(gridName, cellName) {
                //var grid = igtbl_getGridById(gridName);
                // var row = igtbl_getRowById(cellName);
                var cell = igtbl_getCellById(cellName);
                cell.Row.setSelected(true);

                debugger;
            }
        
        
        </script>

    Hope this helps.

Children