RadFilter get dataSource after filtering

4 posts, 0 answers
  1. Dhawal
    Dhawal avatar
    4 posts
    Member since:
    May 2011

    Posted 23 May 2011 Link to this post

    I want to get the filtered data source after applying filtering using RadFilter. Or alternatively, I want to get the filter expression that I can apply to my original data source to get the filtered results. Please let me know how to do this. Thanks in advance.
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 26 May 2011 Link to this post

    Hello Dhawal,

    You can get the filter expression built by RadFilter in its ApplyExpression event. Check the below articles for more information:
    http://www.telerik.com/help/aspnet-ajax/filter-building-expressions.html
    http://www.telerik.com/help/aspnet-ajax/filter-listview-filtering.html

    Greetings,
    Iana
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    8 posts
    Member since:
    Oct 2008

    Posted 03 Jun 2011 Link to this post

    What if I want this expression tree to be handled further up in my application (like the data access layer)? I have a custom queryable/provider that allows me to parse expression trees and pull constants to be passed on to a stored procedure. It'd be great if I could tell RadGrid/RadFilter to just pass this on instead of handling it in code behind.

    Furthermore, I'm using a DomainDataSource with the RadGrid within my view.

    Is this possible?
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 07 Jun 2011 Link to this post

    Hello Brian,

    If the data source you are using for binding the grid supports filtering itself RadGrid and RadFilter would pass the filter expression to the datasource directly. Thus the filtering would happen at database level. Such DataSource controls are LinqDataSource, EntityDataSource and OpenAccessDataSource controls for instance.

    Greetings,
    Iana
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top