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

RadGrid Filter Case Sensitive?

20 Answers 3099 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cyrus
Top achievements
Rank 1
Cyrus asked on 03 Dec 2008, 06:09 PM
Hey how do I make the filter on a RadGrid so that it isn't case sensitive?  Why would you have this enabled by default?  Who would want a case sensitve filter anyway?

20 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 Dec 2008, 04:19 AM
Hi Cyrus,

I found the following forum links which discusses a similar scenario. Go through it and see if it helps.

Filtering - case insensitive?
Case Insensitive Grid Filtering

Shinu.
0
Matthew
Top achievements
Rank 1
answered on 16 Jun 2009, 02:00 PM
I'd like to propose Shinu's response as an answer for this thread.
2
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 07 Oct 2009, 01:31 PM
This works for me:

<telerik:RadGrid ID="rg" runat="server" AllowFilteringByColumn="True" AllowFiltering="True">
  <GroupingSettings CaseSensitive="false" />
0
bryan paslay
Top achievements
Rank 1
answered on 12 Jan 2010, 09:47 PM
The location of the GroupSettings tag determines whether or not setting the caseSensitive attribute to false works.  If you place the tag directly below the RadGrid tag it works.  If you place it below the MasterTable tag it fails.  
 

Hope this helps.
0
Mark
Top achievements
Rank 2
answered on 15 Apr 2010, 03:25 PM
Bryan & Morten, Thanks, worked for me too.
0
whidbey boy
Top achievements
Rank 1
answered on 24 Jun 2010, 03:48 PM
Hi,

Using the

<

 

GroupingSettings CaseSensitive="false" />

works when I select filter setting "Contains". But when I select EqualTo, no records are returned.

Please advise.

 

0
Veli
Telerik team
answered on 24 Jun 2010, 04:52 PM
Hi,

@bryan: Property GroupingSettings (which is configured by the <GroupingSettings> tag in the RadGrid markup) belongs to the RadGrid, not the GridTableView (the MasterTableView). Therefore, it should always be:

<telerik:RadGrid>
    <GroupingSettings />
</telerik:RadGrid>


@whidbey: Consider upgrading to the latest official version of Telerik RadControls for ASP.NET AJAX. If the problem persists, try to give us some more information on how to reproduce this issue.

Sincerely yours,
Veli
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
0
whidbey boy
Top achievements
Rank 1
answered on 24 Jun 2010, 05:21 PM
Hi Veli,

I installed RadControls_for_ASP.NET_AJAX_2010_1_519_trial.msi

I have placed the <GroupSettings> tag below the <telerik:RadGrid>

<

 

telerik:RadGrid>

 

<GroupingSettings CaseSensitive="false" />

......
</telerik:RadGrid>

Applying caseSensitive="False" is working when I select any filter, other than EqualTo. I did not do anything fancy except to bind the RadGrid to a datasource and apply filtering with <GroupSettings CaseSensitive="false" />

 

0
Veli
Telerik team
answered on 25 Jun 2010, 08:13 AM
Hi whidbey boy,

Testing the same RadGrid version with custom objects, DataTable and DataSource control databinding. In all scenarios, case insensitive filtering seems to work with any filter functions.

What is your RadGrid's data source? Can you post some sample RadGrid markup with details on databinding, so that we can try to reproduce this issue.

Kind regards,
Veli
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
0
David Thompson
Top achievements
Rank 2
answered on 10 Mar 2011, 11:11 PM
This does not seem to work with OpenAccessDataSource.  Is that correct?
0
Veli
Telerik team
answered on 11 Mar 2011, 10:16 AM
Hi David,

The OpenAccessDataSource control does not automatically support case-insensitive filtering. If setting GroupingSettings.CaseSensitive = false does not work,  try using databinding with RadGrid's NeedDataSource event instead of DataSourceID. In the event handler, pass the OpenAccessDataSource control instance to the RadGrid.DataSource property. Try case insensitive filtering with this setup.
Veli
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
David Thompson
Top achievements
Rank 2
answered on 11 Mar 2011, 03:11 PM
Veli,

Is there a plan to put that into the OpenAccess implementation of the filter?

David
0
Veli
Telerik team
answered on 14 Mar 2011, 04:02 PM
This particular functionality is not planned for the moment.

Veli
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
Stevoh
Top achievements
Rank 1
answered on 19 Jun 2012, 02:32 PM
Hi,
If your data source is a DataTable, set its CaseSensitive property to false (myDataTable.CaseSensitive=false;)
then also set GroupingSettings CaseSensitive to false for the radgrid (myRadGrid.GroupingSettings.CaseSensitive = false;)
This combination worked for me, try it.

Marcus
0
misha
Top achievements
Rank 1
answered on 27 Feb 2014, 06:19 PM
Morten and Bryan .. thanks for the specifics.. It worked for me too
0
Sait
Top achievements
Rank 1
answered on 08 Jul 2014, 06:12 AM
Çok teşekkürler .... :)
0
muhammed salim
Top achievements
Rank 1
answered on 09 Oct 2014, 04:57 PM
It worked for me.
0
Javier
Top achievements
Rank 1
answered on 22 May 2015, 02:41 PM

Thanks guys,

 The groupingsettings works wonderful.

 

Regards

0
Ivo
Top achievements
Rank 1
answered on 01 Aug 2016, 05:37 PM

Hello everybody,

I had followed Morten´s suggestion 
[quote]<telerik:RadGrid ID="rg" runat="server" AllowFilteringByColumn="True" AllowFiltering="True">
  <GroupingSettings CaseSensitive="false" />[/quote]

It partially works at my scenario. Let´s say I have 20 records, I am filtering with the EmployeeName column. 

If I write "ce" the filter works fine and it retrieves just one record "Bruce Wayne" (see filter_ce.jpg) BUT

If I write "ca" the filter doesn´t work and it retrieves all records at the DataSource (see filter_ca.jpg).

Any ideas?? how can I correct this behavior??

0
Viktor Tachev
Telerik team
answered on 03 Aug 2016, 02:48 PM
Hello Ivo,

Would you open a support ticket and send us a small runnable sample where the behavior you are observing is replicated? This will enable us to examine the behavior and look for its cause.

Regards,
Viktor Tachev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Cyrus
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Matthew
Top achievements
Rank 1
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
bryan paslay
Top achievements
Rank 1
Mark
Top achievements
Rank 2
whidbey boy
Top achievements
Rank 1
Veli
Telerik team
David Thompson
Top achievements
Rank 2
Stevoh
Top achievements
Rank 1
misha
Top achievements
Rank 1
Sait
Top achievements
Rank 1
muhammed salim
Top achievements
Rank 1
Javier
Top achievements
Rank 1
Ivo
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or