Match Case issue

8 posts, 0 answers
  1. jean-Marc
    jean-Marc avatar
    22 posts
    Member since:
    Jun 2010

    Posted 20 Feb 2011 Link to this post

    Hi,
    while reviewing one of your online example : http://demos.telerik.com/silverlight/#DomainDataSource/RadDataFilterIntegration
    I found that the Match case feature didn't seems to work.
    The DataFilter seems to do his job and translate properly as follow
    Examples.Web.Customer[].Where(item => item.ContactName.Contains("ANN")).Take(10)
    Examples.Web.Customer[].Where(item => item.ContactName.ToLower().Contains("ANN".ToLower())).Take(10)

    the domain data source returned in both case 5 entries (3 of them are wrong).
    Just thought I will share what might be a bug.
    Regards
    Jean-Marc 
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Feb 2011 Link to this post

    Hello jean-Marc,

    Unfortunately, the LINQ to Entities query provider will always "send" a case-insensitive "Where" to SQL Server.

    Kind regards,
    Ross
    the Telerik team
  3. DevCraft banner
  4. jean-Marc
    jean-Marc avatar
    22 posts
    Member since:
    Jun 2010

    Posted 08 Mar 2011 Link to this post

    shouldn't that option be hidden then? It's confusing otherwise.
    Regards
    JM
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 08 Mar 2011 Link to this post

    Hello,

     Unfortunately we cannot detect the query provider behind the service to hide this conditionally. 

    All the best,
    Vlad
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. jean-Marc
    jean-Marc avatar
    22 posts
    Member since:
    Jun 2010

    Posted 08 Mar 2011 Link to this post

    OK thanks Vlad. I guess it's up to the developer to define then if the type of collation use case sensitive or insensitive. Between is there an option to hide this option if the developer knows this won't work? Or should he just redefine the template?
  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 08 Mar 2011 Link to this post

    Hi jean-Marc,

    You can attach to the FieldFilterEditorCreated event of the grid. The event arguments will contain the instance of the field filter editor being created, in this case a StringFilterEditor. You can find the check-box with the ChildrenOfType<T> method and set its Visibility to false, if you know that it will not work.

    Let me know if there are problems with this approach.

    Best wishes,
    Ross
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. Bryan Hill
    Bryan Hill avatar
    7 posts
    Member since:
    Sep 2012

    Posted 20 Apr 2011 Link to this post

    I cannot seem to find the event FieldFilterEditorCreated off the RadGridView.  Did it change?  Am I missing a reference?

  9. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Apr 2011 Link to this post

    Hi Bryan Hill,

    You are probably using an older version. Can you try with the latest one?

    Regards,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner