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

FilterExpression

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 28 Oct 2011, 09:03 PM
hi , i'm having problem with radgrid in my n-tier applicatin
i'm assigning radgrid datasource  to a List<Product> and i need radgrid provide me filterexpression in form of entity sql format eg: "it.CustomerID = ALFKI" but its format is like "(Convert.ToString(it[\"CustomerID\"]) = \"ALFKI\")"
how i can please radgrid to create entity sql filterexpression without using EntityDataSource ?




1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 02 Nov 2011, 07:59 AM
Hi Ali,

If you are using .net 3.5/4.0 version of RadGrid filter expressions are in different format. RadGrid internally use Dynamic LINQ in order to perform filtering. The format of the expression depends on what is the source that will be filtered.
In case of SqlDataSource format is as follow: it["FieldName"] = "Value". Thus the expressions like: Login_Name='Patrik' should look as follow: it["Login_Name"] = "Patrik".
On the following link you could find more information about how to operate with the FilterExpression of Telerik RadGrid Manually:
http://www.telerik.com/help/aspnet-ajax/grid-operate-with-filter-expression-manually.html

I hope this helps.

Regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
ali
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or