This is a migrated thread and some comments may be shown as answers.

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

2 Answers 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avinash
Top achievements
Rank 1
Avinash asked on 29 Jul 2016, 09:24 PM

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. 

http://dojo.telerik.com/eqIDe/2

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

Thanks.

Avinash

2 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 02 Aug 2016, 11:06 AM
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.

http://dojo.telerik.com/eqIDe/3


Regards,
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
0
Avinash
Top achievements
Rank 1
answered on 08 Aug 2016, 04:01 PM
That worked. Thanks.
Tags
Grid
Asked by
Avinash
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Avinash
Top achievements
Rank 1
Share this question
or