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
4110
Clear grid selection
posted

Does anyone know how to clear the selected row when you click out of the grid. I have two small grids, when I click a row to edit on one and then click on the other grid to edit or do something else on the page, I don't want the first grid to continue showing a selected row.

Parents
No Data
Reply
  • 7566
    posted

    Hello Dbishop9,

     

     

    Thank you for posting in our community. You can handle client side click event of the girds and to clear the selected rows from the other grid with javascript. Here you can refer to this sample code

     

    var grid = $find('<%= this.WebDataGrid1.ClientID%>');

           grid.get_behaviors().get_selection().__clearAll();

     

     

    I hope this helps.

    For any further questions do not hesitate to contact me.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

Children