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

RadGrid and RadFilter - Adding filter expressions programmatically

4 Answers 446 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Petter
Top achievements
Rank 1
Petter asked on 18 Mar 2010, 02:48 PM
Hello!

I'll try to post this in the Filter forum as well...

I'm working on a RadGrid based solution using filtering with the well described drop-down list column template. This works fine. I now want to add extra filtering functionality where extra filter criteria will be selected from keywords in drop-downs outside the grid (views in a way). These expressions will have to be added to the ones from the drop-downs in the grid.

I could achieve this by using a hidden RadFilter control, programmatically populating the control with the filter expressions from the drop-downs both outside and inside the grid but I can't find any description of how to do this.

So, is this achievable at all?


Kind regards

Petter Marthinsen

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Mar 2010, 12:45 PM
Hello Petter,

I am not quite sure that RadFilter control will fit your needs for the particular scenario.
Unfortunately I am not quite sure that I completely understand it. Once possible way of adding extra filter criteria will be to have ControlParameters of the DataSourceControl that is used for binding RadGrid.
Thus the additional condition will be appended whenever RadGrid attempts to select fresh data from it's data source.

Regards,
Nikolay
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.
0
Petter
Top achievements
Rank 1
answered on 19 Mar 2010, 01:17 PM
Nikolay,

I thought that the idea with the filter control was client side filtering, am I wrong? And if client side, then there wouldn't be necessary to execute a new SQL query (in my case).

Kind regards

Petter Marthinsen
0
Nikolay Rusev
Telerik team
answered on 23 Mar 2010, 04:54 PM
Hello Petter,

The RadFilter control offers to the developer an interface for constructing strongly typed filter expressions.These expressions can subsequently be used to query data from a data source control, or be applied to a control, which supports such a filter expression, for example RadListView/RadGrid.

The expressions that are build is not intended to be used on client.

Regards,
Nikolay
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.
0
Petter
Top achievements
Rank 1
answered on 23 Mar 2010, 05:02 PM
Nikolay,

Thank you for clarifying. Then I'll add my own filter drop-downs and use them as ControlParameters for the DataSourceControl (like I've done earlier).

Kind regards

Petter Marthinsen
Tags
Filter
Asked by
Petter
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Petter
Top achievements
Rank 1
Share this question
or