problem with GridClientSelectColumn and paging

2 posts, 0 answers
  1. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 21 Feb 2010 Link to this post

    Hi all.
    In my grid I have a GridClientSelectColumn
    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="35"/>
    and a client side paging.
    When I select a row, for example first from the bottom and switch to next page with results, on the next page the same row is selected either. Can someone give me a proper solution to fix it?
  2. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 22 Feb 2010 Link to this post

    OK I did it.
    In the OnCommand event handler I have added a
     if (eventArgs.get_commandName() == "Page"
        { 
            var masterTable = $find(MyGrid.MyGridJSClientID).get_masterTableView(); 
            var count = masterTable.get_selectedItems().length; 
     
            if (count > 0) 
            { 
                masterTable.clearSelectedItems(); 
            } 
        } 

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top