Saving user setted filters and loading desired filter

2 posts, 1 answers
  1. Manoj
    Manoj avatar
    43 posts
    Member since:
    Aug 2011

    Posted 26 Aug 2011 Link to this post

    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.
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 29 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top