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

Saving user setted filters and loading desired filter

1 Answer 69 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 26 Aug 2011, 06:01 PM
Hi Telerik Team,

As per my requirement users can set data filter and save it to database. One user can ctreate and save( to database) many data filters. And any user can select/edit  those saved datafilters and apply to redGrid. I am using Silverlight as client and Wcf service as back end. 

I have tried unbound datafilter and provided buttons for 'apply filter' and 'save filter'. I want to apply filter from serverside because I have to handel more then 80000 rows. Can not load all rows....takes long time...  Is it possible to do server side paging along with filtering with WCF sevice(Not Ria)? If yes please provide some sample.

Please suggest which API can help me like persistence manager or some code for saving/loading filter.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 29 Aug 2011, 12:15 PM
Hi Manoj,

You can wire RadDataFilter, RadDataPager and RadGridView directly to our new control RadDataServiceDataSource as shown in this online sample. To learn more about the RadDataServiceDataSource control, please take a look at my blog post.

As for saving and loading the filter criteria, you will have to manually traverse over RadDataFilter.FilterDescriptors collection and save the object graph into some kind of XML format. Then you can parse this saved XML and restore the FilterDescriptors back. Since this is a general .NET topic, i.e. traversing a tree and writing/reading XML, we don't have a specialized example for this.

Regards,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
DataFilter
Asked by
Manoj
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or