How to update pager in a grid

5 replies. Last post: March 11, 2010 10:04 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

First question: I have custom pager on a grid which retrieve 100 records per page. First query has 2200 records. It display 22 pages. Second query has 1100 records. So it must display 11 pages, but it continues to display 22 pages in a pager dropdown (see attachment). How to refresh pager menu.

 

Second question: When I do new filtered query I going to the same page on a grid. Example, if I am on page 8 and do new query than I coming to the same page 8. I need to come to the page 1 with each new query.  How to use    grid.GotoFirstPage() function. If I use it from  WebGrid_OnAfterResponseProcess() function then everythin freeze. Please provide sample code

 

I am waiting for your response, It is very important

 

Thank you very much in advance

1 attachment
All times are GMT -5. The time now is 11:57 AM.
Previous Next