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

Match Case issue

7 Answers 34 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
jean-Marc
Top achievements
Rank 1
jean-Marc asked on 20 Feb 2011, 06:46 AM
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 

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Feb 2011, 10:16 AM
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
0
jean-Marc
Top achievements
Rank 1
answered on 08 Mar 2011, 08:04 AM
shouldn't that option be hidden then? It's confusing otherwise.
Regards
JM
0
Vlad
Telerik team
answered on 08 Mar 2011, 08:27 AM
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!
0
jean-Marc
Top achievements
Rank 1
answered on 08 Mar 2011, 09:00 AM
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?
0
Rossen Hristov
Telerik team
answered on 08 Mar 2011, 10:57 AM
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!
0
Bryan Hill
Top achievements
Rank 1
answered on 20 Apr 2011, 06:09 PM
I cannot seem to find the event FieldFilterEditorCreated off the RadGridView.  Did it change?  Am I missing a reference?

0
Rossen Hristov
Telerik team
answered on 21 Apr 2011, 09:07 AM
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
Tags
DomainDataSource
Asked by
jean-Marc
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
jean-Marc
Top achievements
Rank 1
Vlad
Telerik team
Bryan Hill
Top achievements
Rank 1
Share this question
or