FilterExpression syntax varries??

2 posts, 1 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 09 Sep 2009 Link to this post

    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?

  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Sep 2009 Link to this post

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