This question is locked. New answers and comments are not allowed.
Janus Pienaar
Top achievements
Rank 1
Janus Pienaar
asked on 05 Feb 2010, 03:36 PM
Hi
Is there a way that the Grid can remember the filter and sorting options when a rebind occurs?
Thanks
Janus
Is there a way that the Grid can remember the filter and sorting options when a rebind occurs?
Thanks
Janus
4 Answers, 1 is accepted
0
Hello Janus,
Could you please elaborate little more on this requirement? What will cause rebinding of the grid?
In general the filter and sort expressions are placed in the query string if server binding mode is used. In Ajax binding mode the [GridAction] attribute process the filter and sort expressions. Hence you can retrieve them in the action method, which is called on ajax.
Sincerely yours,
Georgi Krustev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Could you please elaborate little more on this requirement? What will cause rebinding of the grid?
In general the filter and sort expressions are placed in the query string if server binding mode is used. In Ajax binding mode the [GridAction] attribute process the filter and sort expressions. Hence you can retrieve them in the action method, which is called on ajax.
Sincerely yours,
Georgi Krustev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Bob
Top achievements
Rank 1
answered on 30 Jan 2012, 09:12 PM
I expect he means when you leave the grid page and then return. I seem to recall some control (perhaps not teleriks) would let you store that stuff in a cookie and it would automatically retrieve it.
Is there anything built into the grid to get this behavior?
BOb
Is there anything built into the grid to get this behavior?
BOb
0
Wicky
Top achievements
Rank 1
answered on 31 Jan 2012, 02:19 AM
Hi,
I think you could try grid.ajaxRequest(true).
Regards
Wicky
I think you could try grid.ajaxRequest(true).
Regards
Wicky
0
Bob
Top achievements
Rank 1
answered on 31 Jan 2012, 03:32 PM
I don't see how that solves the problem.
Also, the API doesn't show that ajaxRequest accepts a parameter. This just seems like what the refresh button will call.
Perhaps you can be more specific?
BOb
Also, the API doesn't show that ajaxRequest accepts a parameter. This just seems like what the refresh button will call.
Perhaps you can be more specific?
BOb