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

How to apply filter on a RadGrid using ApplyExpression Event

2 Answers 121 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Web team
Top achievements
Rank 1
Web team asked on 05 Oct 2010, 11:07 AM
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 Answers, 1 is accepted

Sort by
0
Web team
Top achievements
Rank 1
answered on 05 Oct 2010, 11:35 AM
i tried this one but it did not work:

RadGrid1.MasterTableView.FilterExpression = provider.Result;


anyone?
0
Pavlina
Telerik team
answered on 08 Oct 2010, 09:44 AM
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
Tags
Filter
Asked by
Web team
Top achievements
Rank 1
Answers by
Web team
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or