RadGrid and RadFilter - Adding filter expressions programmatically

5 posts, 0 answers
  1. Petter
    Petter avatar
    5 posts
    Member since:
    Apr 2009

    Posted 18 Mar 2010 Link to this post

    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
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 19 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Petter
    Petter avatar
    5 posts
    Member since:
    Apr 2009

    Posted 19 Mar 2010 Link to this post

    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
  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 23 Mar 2010 Link to this post

    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.
  6. Petter
    Petter avatar
    5 posts
    Member since:
    Apr 2009

    Posted 23 Mar 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017