我正在使用 Telerik asp.net mvc 扩展。
在我的应用程序中,大多数情况下我使用以下流程:
- 显示网格
- 单击按钮并执行业务操作
- 重定向回网格。
问题是,当用户在 1 中选择某个过滤器时,该过滤器会在 3 中丢失。此外,当用户从菜单操作中选择显示网格并且不应用最后使用的过滤器时,这有点烦人。
网格过滤器存储在 URL 中(GET 方法)。
如:
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'
我想要的是记住过滤请求之间的状态。这可行吗?
I'm using Telerik asp.net mvc extensions.
In my application in most cases I'm using the following flow:
- Show Grid
- Click on the button and perfom business action
- 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?
发布评论
评论(1)
请查看此主题。您可以坚持过滤排序和分页。解决方案是针对服务器绑定的ajax绑定,您可以遵循此帖子
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