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

FilterExpression syntax varries??

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 09 Sep 2009, 10:18 AM
Hi,

Some time ago (march 2009), an application, that worked fine before, gave an error "Invallid expression". No changes where made to the source. After some tracing it came down to the following line: (Page_Init)

RadGrid1.MasterTableView.FilterExpression = "(Int32?(it[""Stemaanvraagnummer""]) = " & EMO.ServiceNET.Current.Stem_ID & ")" 

I replaced it then with:
RadGrid1.MasterTableView.FilterExpression = "([Stemaanvraagnummer] = " & EMO.ServiceNET.Current.Stem_ID & ")" 

Problem solved. Last week... the error was there again! Now i had to change it back!! and problem solved again!!

What is the problem?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 09 Sep 2009, 02:37 PM
Hi Proovit,

FilterExpression in our .NET 2.0 build are in old ADO.NET style and FilterExpression in our .NET 3.5 build are LINQ based. You can turn off LINQ expressions in our .NET 3.5 build using EnableLinqExpressions property.

Greetings,
Vlad
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
Erik
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or