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

[Solved] Telerik grid is not moving to another page when deleting the record

1 Answer 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Karthikeyan
Top achievements
Rank 1
Karthikeyan asked on 12 Jan 2012, 09:10 AM
Hi,
I'm facing the problem when deleting a record in the Telerik Grid (ASP .Net MV3 razor view).
The issue is, the grid is not moving to previous page when all records are deleted in a particular page;

Example, in this demo,
http://demos.telerik.com/aspnet-mvc/Grid/EditingAjax?theme=vista
When user removes all the records from the last page, I want to move it previous page (say, grid has 8 pages, if all records are deleted, i want to move to page 7).
How to do this?

I checked the Paging examples but couldn't able to find anything. Is there any property I could use to set the PageTo property in OnDataBinding client function?

PS: I have few other grids which are using custom templates for delete, for those its working fine, but not for telerik grid's delete function.

Thanks in Advance,
Karthikeyan R

1 Answer, 1 is accepted

Sort by
0
Manc
Top achievements
Rank 1
answered on 23 Oct 2012, 04:50 AM
I am facing exact same issue. When all the records on the last page are deleted, I want the view to auto-shift to the previous page (when current page is not the first page). Is it possible to customize this behavior in Telerik grid? If not, could that be a default behavior supported in Telerik itself?
Tags
Grid
Asked by
Karthikeyan
Top achievements
Rank 1
Answers by
Manc
Top achievements
Rank 1
Share this question
or