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

[Solved] Filter operator

4 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nohinn
Top achievements
Rank 1
Nohinn asked on 09 Sep 2011, 09:27 AM
I'm having issues when I try to filter the data on my grid.
So far I did find the problem, but I don't know why it is happening.

I have an integer column, if I select 'Greater than or equal' option in the javascript code it sets the operator to 'ge' while in the Filter.operatorStrings it is 'gte'.

I do not know why my grid is deleting (or not even adding) that 't' in the middle.
Any suggestion?

4 Answers, 1 is accepted

Sort by
0
Nohinn
Top achievements
Rank 1
answered on 09 Sep 2011, 09:36 AM
UPDATE:
These are the wrong operators I'm having.

ne, should be neq
ge, should be gte
le, should be lte
0
Nikolay Rusev
Telerik team
answered on 09 Sep 2011, 02:15 PM
Hello Nohinn,

I am afraid that I do not understand what is the issue that you are facing with Grid filtering.
Could you please provide a bit more details what exactly is the issue that you are facing?

I can see that filtering on numeric field on the online demos is working properly:
http://demos.telerik.com/aspnet-mvc/grid

Greetings,
Nikolay
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Nohinn
Top achievements
Rank 1
answered on 09 Sep 2011, 02:33 PM
Hello Nikolay, I have tracked down the issue (and it even happens with your demos).

If you have enabled Operation Mode and you set it to Client mode and you try to filter, you can see it is not working, tracking down the issue (using the javascript files you provide with the extensions) I did see that the problem is that when you select "Greater than or equal to" for example the code it is using as the operator is ge while it should be gte because when it tries to look for the operator sign in the Filter.operatorStrings array it does not find this 'ge' key, then it returns null, and the next function throws an exception because it needs the data from this function that is returning null.

As I say this problem is only present with these options:
Option text, operator code, expected operator code

'Is greater than or equal to', 'ge', 'gte'
'Is less than or equal to', 'le', 'lte'
'Is not equal to', 'ne', 'neq'
0
Nikolay Rusev
Telerik team
answered on 12 Sep 2011, 03:11 PM
Hello Nohinn,

I see what you mean. Those bugs should be fixed in the post release update uploaded in the following forum thread.
http://www.telerik.com/community/forums/aspnet-mvc/general/q2-2011-latest-internal-build-for-os-license.aspx

Regards,
Nikolay
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
Grid
Asked by
Nohinn
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or