How to apply filter on a RadGrid using ApplyExpression Event

3 posts, 0 answers
  1. Web team
    Web team avatar
    57 posts
    Member since:
    Mar 2010

    Posted 05 Oct 2010 Link to this post

    Hi,

    I want to create a combobox filter control instead of a textbox in RadFilter. I followed the steps described on this link:

    http://www.telerik.com/community/forums/aspnet-ajax/filter/error-when-building-custom-radfilterdatafieldeditor.aspx

    However the example on this link does not involve updating a a radgrid but only displaying result filter. Please help me fill in the codes (???) below so I can filter my Radgrid based on the expression produced by the ApplyExpression event:

    protected void RadFilter1_ApplyExpressions(object sender, RadFilterApplyExpressionsEventArgs e)
            {
                RadFilterSqlQueryProvider provider = new RadFilterSqlQueryProvider();
                provider.ProcessGroup(e.ExpressionRoot);
                RadGrid1.DataSource = ???
            }


    Thanks a lot.
  2. Web team
    Web team avatar
    57 posts
    Member since:
    Mar 2010

    Posted 05 Oct 2010 Link to this post

    i tried this one but it did not work:

    RadGrid1.MasterTableView.FilterExpression = provider.Result;


    anyone?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Oct 2010 Link to this post

    Hi Arnold,

    Please find the attached sample illustrating the desired functionality. Please check it out and let me know if it works for you.

    I hope this helps.

    Kind regards,
    Pavlina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top