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

[Solved] Futures Build: Filterexpression Exception

2 Answers 249 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 27 Mar 2008, 11:06 AM
Hi,

I tried following Code in the new Futures Release of Prometheus:
var filter = "([Subject] LIKE \'%Test%\')";  
RadGridMessages.MasterTableView.FilterExpression = filter;  
RadGridMessages.MasterTableView.Rebind(); 

When Rebind() is reached, following Exception is thrown: "Expression expected".
If I leave out the [] the Exception " ')' or operator expected" is thrown.

This error occures only with the new Futures Build. The code works almost the same manner as the documentation and the demo.

Can you help me?
Thank you und with kind regards,

Philip

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 27 Mar 2008, 11:36 AM
Hello Philip,

The 3.5 build of Telerik.Web.UI.RadGrid now support native LINQ expressions by default and you can use:

"it[Subject].ToString().Contains("Test")"

instead. Other possible solution is to set EnableLinqExpression to false for the grid and use ADO.NET like filter expressions.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philip
Top achievements
Rank 1
answered on 27 Mar 2008, 12:11 PM
Thank you. That works. I just didn't find it in the documentation/demos.
Tags
Grid
Asked by
Philip
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Philip
Top achievements
Rank 1
Share this question
or