How to return to the First page on a grid

1 reply. Last post: March 11, 2010 9:58 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I have a webgrid version 6.0 with a filters and paging functionality build in.  I am using asp:objectdatasource control to do custom pagination. I also have button on a form which do postback.  My action:

1. Setup filters on a grid and click a button to get data

2. Go to page 5 on a grid

3. Set new filter on a grid and click a button to get data.

 

I want to be on a page 1, but instead I go to the page 5. Everything is correct I am displaying data for page 5. But after I clicking a button I need to be on a page 1 displaying data for page 1

 

What code should I write in  javascript or on server to reset pageIndex to  1?

Can I use this function.  WG50Engine.ExecuteFlyPostback("myGrid","PagingTo",1);

 

All times are GMT -5. The time now is 4:43 AM.
Previous Next