Deleting Row in Grid with PageSize 'All' Selected in Kendo UI ASP.NET MVC

3 posts, 1 answers
  1. Avinash
    Avinash  avatar
    52 posts
    Member since:
    Jan 2016

    Posted 29 Jul Link to this post

    I have two grids with pageSize enabled which includes 'All' text to display all the items of the grid. There is a button in the form which when clicked will move items from one grid to other. The issue is when i select pageSize 'All' and click the button to move the item, the pageSize label changes to total count of the grid item. e.g. if grid1 has 50 items and if i move 1 item from grid1 to grid2, the pageSize text 'All' changes to '50' in grid1 after the move is performed. 

    I have created sample which has grid and delete button to remove one item from grid to mock this behavior. To replicate this behavior, select 'All' in the grid and click 'Delete' button. You should see '4' in the pageSize after the removal of the item from the grid.

    Is there anyway to have 'All' text selected even after the removal of item from grid1?



  2. Answer
    Viktor Tachev
    Viktor Tachev avatar
    1488 posts

    Posted 02 Aug Link to this post

    Hello Avinash,

    The 'All' option in the pager actually sets the page size to the total number of items in the grid. If you would like to keep the "All" option selected after deleting an item you need to update the pager.

    Viktor Tachev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Avinash
    Avinash  avatar
    52 posts
    Member since:
    Jan 2016

    Posted 08 Aug Link to this post

    That worked. Thanks.
Back to Top