문제

I'm using Telerik asp.net mvc extensions. In my application in most cases I'm using the following flow:

  1. Show Grid
  2. Click on the button and perfom business action
  3. Redirect back to Grid.

The problem is that when the user chose some filter in 1. then this filter is lost in 3. Additionally it is kind of annoying when the user chooses from the menu action to show grid and the last used filter is not applied.

Grid filters are stored in URL (GET method).

Such as:

http://localhost/IncomingRequest?IncomingRequestGrid-page=1&IncomingRequestGrid-orderBy=IncomingDate-desc&IncomingRequestGrid-groupBy=~&IncomingRequestGrid-filter=IncomingDate~gt~datetime'2011-10-20T08-10-11'~and~CartNumber~endswith~'xx'

What I would want is to remember filter state between requests. Is this doable?

도움이 되었습니까?

해결책

Please have a look at this thread. you can persist filter sorting and paging. The solution is for ajax binding for server binding you may follow this post

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top