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

[Solved] Custom filtering when using ADO.NET DataService

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ulrik Born
Top achievements
Rank 1
Ulrik Born asked on 20 Jan 2010, 11:19 AM
Hi,

We're using a RadGrid client-side bound to a ADO.NET DataService. We would like to use some custom input boxes above the grid to let the user specify a filter that cannot easily be specified using the built-in column-filters in the grid.

Our filter input can be translated to a textual LINQ query. Is there any way we can tell the grid to append our filter to the query it makes against the data service and thereby make it show only the rows that matches our custom filter?

Thanks in advance
Ulrik

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 21 Jan 2010, 04:29 PM
Hello Ulrik,

You can use RadGrid client filter function. Calling this function will cause RadGrid to call the service with properly build where expressions.  If there are already filter expressions they will be applied along with new filter expression.
You can use the second grid on the following demo for startup:
http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx

All the best,
Rusev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ulrik Born
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or