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
45
Set focus
posted

How to set focus on webdatagrid cell on client side in ExitedEditMode client side event

Parents
  • 500
    posted

    Hi Rukasana,

     

    You can do something like the following in ExitedEditMode event handler:

    function WebDataGrid1_CellEditing_ExitedEditMode(sender, eventArgs)

       var cell = eventArgs.getCell();    

       cell.get_element().focus()

    }

    However, if you click on another cell after editing, it will receive the actual focus. If you click outside the grid on an element which doesn't handle focus, it will remain on the cell. You can also enable Activation and Selection behaviors to see which is the active (selected) cell. If you need additional information about your actual use case, please feel free to ask for additional information.

     

    Thanks,

    Dimitar Atanasov

    Senior Software Engineer,

    Infragistics

Reply Children
No Data