This is a migrated thread and some comments may be shown as answers.

Keep grid filter/sort order on refresh

1 Answer 93 Views
This is a migrated thread and some comments may be shown as answers.
Silviu
Top achievements
Rank 1
Silviu asked on 06 Jan 2017, 10:28 AM

I have a radGrid on a page which periodically refreshes the data from the server.

The grid has filter and sorting enabled.

Is it possible to keep the sort order/filter option when the page refreshes itself? As currently it all reset on auto-refresh.

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 09 Jan 2017, 11:27 AM
Hi Silviu,

If you are refreshing RadGrid through its client-side API, the filter and the sort expression should be preserved:
$find("<%=RadGrid1.ClientID%>").get_masterTableView().rebind();

However, if you are refreshing the entire page, you could take a look at the following demo for persisting the RadGrid state:
Hope this helps.


Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Silviu
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or