update page when deleted all the rows using ajax paging

May 22, 2010 at 2:33 PM

Hi webdiyer,

Thanks for the nice code. I am using it in my mvc project. I have something to ask you.

I am displaying a paged result using ajax paging and have delete button for each row.

once all rows are delete. I want the pager to load some page (previous or next).

how will i do it. Is there any custom function i can use to achive that.

 

Regards

Parminder

Coordinator
May 24, 2010 at 3:38 PM

Hi, virk0009, you need to reload paged data every time you deleted a row, maybe the batch delete is more efficient way to do this! Thanks

May 24, 2010 at 8:21 PM
Thanks Webdiyer, I fixed it by counting rows in the table, when all of them are deleted, then refreshing the current view (by looking pageindex from model) Regards Parminder
Coordinator
May 27, 2010 at 1:53 AM

You're welcome! Thank you for using MvcPager!