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
245
Setting the UltraWebGrid in Edit Mode on a Single Mouse Click
posted

Hi, there I'm having an issue with the UltraWebGrid control.

I need to be able to set the UltraWebGrid control in edit mode on a single mouse click when I select an entire row.

Is there a way to implement this functionality?

 

Thanks. 

Parents
No Data
Reply
  • 14049
    Offline posted

    This would require setting up a client side event handler:

    JS:

          <script type="text/javascript" id="igClientScript">

    <!--

     

                function UltraWebGrid2_BeforeEnterEditModeHandler(gridName, cellId)

                {

                      var grid = igtbl_getGridById(gridName);

                      var cell = igtbl_getCellById(cellId);

                      grid.clearSelectionAll();

                      cell.getRow().select();

    }

    // -->

    </script>

     

     

    ASPX:

    <DisplayLayout AllowUpdateDefault="Yes" CellClickActionDefault="Edit" SelectTypeRowDefault="Single" ...>

          <SelectedRowStyleDefault BackColor="#99FF99">

          </SelectedRowStyleDefault>

          <ClientSideEvents BeforeEnterEditModeHandler="UltraWebGrid2_BeforeEnterEditModeHandler" />

     

     

     

Children
No Data