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

Filter is case-sensitive

13 Answers 395 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 30 Jun 2008, 09:55 AM
Hi,

I use custom paging and custom filtering as it is shown in this demo:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/CustomPaging/DefaultCS.aspx

But as you can see in the demo the filter is case-sensitive. Is there any way to change that to case-insensitive??

Best regards
Sebastian

13 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2008, 10:34 AM
Hello Sebastian,

You can find that the filter is Case-Insensitive as you go through the following forum link
Filters are Case Insensitive
Make sure that you have set the CaseSensitive property to False in the GroupSettings as mentioned in the link..

Thanks
Shinu.

0
Markus
Top achievements
Rank 1
answered on 30 Jun 2008, 11:53 AM
Hello Shinu,

Thx for your answer.

But unfortunately setting GroupingSettings.CaseSensitive = false doesn't solve the problem for me.

I am binding the grid to custom collections. This problem is really nasty because I get the collection from the underlying business tier (already filtered), assuming I have let's say 200 items in it, then update the MasterTableView.VirtualItemCount so the grid's pager is displayed correctly but then only 2 rows show up because the grid applies its case-sensitive filter.

I am using version 2008.1.515.35.
0
Accepted
Sebastian
Telerik team
answered on 30 Jun 2008, 12:17 PM
Hello Sebastian,

Can you please check whether setting the EnableLinqExpressions property of the grid to false in combination with GroupSettings -> CaseSensitive = false makes a difference?

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 30 Jun 2008, 01:11 PM
Hello Stephen,

Thank you. Now it works.

Best regards,
Sebastian
0
Markus
Top achievements
Rank 1
answered on 01 Jul 2008, 09:20 AM
Unfortunately setting EnableLinqExpressions = false breaks the paging.

As soon as I set a FilterExpression I can't access any other pages than the first.
I get the following error (having a page size of 35):

Index 35 is either negative or above rows count.

This is what I am doing:
  • In the OnNeedDataSource event I fetch a collection of business objects (using startRowIndex and maximumRows to fetch only the records of the current page)
  • set the DataSource of the grid (35 item)
  • set the VirtualItemCount property to the total row count (e.g. 200)
With no filter applied everything works fine. I'm really stuck here...

Either I have the case-sensitive filter of the grid applied to my already filtered results (with EnableLinqExpressions = false) or the paging doesn't work (with EnableLinqExpressions = true).

Will an upgrade to the latest version help in this case?? I didn't find anything about this issue in the release notes. As I said I am using version 2008.1.515.35.
0
Accepted
Sebastian
Telerik team
answered on 01 Jul 2008, 10:33 AM
Hello Sebastian,

The issue with the broken pager should be addressed in the Q2 2008 SP2 release of RadGrid for ASP.NET AJAX (2008.1.619). Please upgrade to the latest official release of the product (following the instructions from this KB article) and let me know how it goes.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 01 Jul 2008, 11:43 AM
Hello Stephen,

It's indeed fixed in the latest release (2008.1.619.35).

Best regards,
Sebastian
0
Jurjen Ladenius
Top achievements
Rank 2
answered on 08 Jul 2008, 01:44 PM
Hello,

I have the same problem. But I use Linq to bind my Datasource. So I need the EnableLinqExpressions to be set ot true. Is there another way to achieve this?

Best Regards,

Jurjen
0
Vlad
Telerik team
answered on 08 Jul 2008, 01:53 PM
Hi Jurjen,

Can you please check whether setting the GroupSettings -> CaseSensitive = false makes a difference?

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jurjen Ladenius
Top achievements
Rank 2
answered on 08 Jul 2008, 01:58 PM
Hello,

I've already done that, but it's not working.

Kind regards,

Jurjen
0
Vlad
Telerik team
answered on 08 Jul 2008, 02:28 PM
Hi Jurjen,

How the grid is bound in your case (DataSourceID or NeedDataSource)?

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jurjen Ladenius
Top achievements
Rank 2
answered on 15 Jul 2008, 01:31 PM
Hello,

It is bound with a LinqDataSource via a DataSourceID.

Regards,

Jurjen
0
Vlad
Telerik team
answered on 15 Jul 2008, 01:44 PM
Hello Jurjen,

I just tried this and everything worked fine on my end - filtering is not case sensitive. You can find small example attached.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Markus
Top achievements
Rank 1
Sebastian
Telerik team
Jurjen Ladenius
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or