This question is locked. New answers and comments are not allowed.
Hi,
I am implementing a filtered grid using the custom javascript filtering ("property~eq~value" etc..) In my model I have a team member property that is a list of team members. I need to query the models that contain a TeamMember with the specified username. Is this scenario possible using the client-side filtering? in linq I could use the Contains, or the Any extensions, is there a way to do this in the grid using the grid.filter() if not, is there a good way to send the values back to the controller so I can filter it on the ajax call?
I am implementing a filtered grid using the custom javascript filtering ("property~eq~value" etc..) In my model I have a team member property that is a list of team members. I need to query the models that contain a TeamMember with the specified username. Is this scenario possible using the client-side filtering? in linq I could use the Contains, or the Any extensions, is there a way to do this in the grid using the grid.filter() if not, is there a good way to send the values back to the controller so I can filter it on the ajax call?
6 Answers, 1 is accepted
0
Hi Lance,
Atanas Korchev
the Telerik team
Currently this is not possible. Filtering only works on primitive properties - string, numbers, dates etc. Array containment is not supported.
Regards,Atanas Korchev
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
Lance
Top achievements
Rank 1
answered on 03 Nov 2010, 02:34 PM
Thanks for the reply,
Is there a preferred way to pass such data back to the server in the grid.filter call so I can initiate the filter serverside before generating the GridModel?
Thanks
Lance
Is there a preferred way to pass such data back to the server in the grid.filter call so I can initiate the filter serverside before generating the GridModel?
Thanks
Lance
0
Hi Lance,
Atanas Korchev
the Telerik team
No, there is no such way. The filtering only supports primitive types and there is no easy way to implement more complex or custom operators.
Regards,Atanas Korchev
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
Piotr
Top achievements
Rank 1
answered on 13 Jul 2011, 09:20 AM
Is there any plan yet on adding support to sort and filter not only by primitive types?
Will you add an option to create custom filtering pane where I could place custom controls (ie. dropdown with some pre-defined options) and then use selected data to do a custom filtering (I can think of a case where I'd like to filter by the actual value, not a display value)?
Regards
Piotrek
Will you add an option to create custom filtering pane where I could place custom controls (ie. dropdown with some pre-defined options) and then use selected data to do a custom filtering (I can think of a case where I'd like to filter by the actual value, not a display value)?
Regards
Piotrek
0
Hi Piotr,
Atanas Korchev
the Telerik team
Custom filtering is definitely in our plans. We have not decided yet when to implement that.
Regards,Atanas Korchev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
Piotr
Top achievements
Rank 1
answered on 07 Sep 2011, 03:00 PM
Hi,
do you have any estimate when does this functionality be availible in telerik mvc grid?
Regards
Piotrek
do you have any estimate when does this functionality be availible in telerik mvc grid?
Regards
Piotrek