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

[Solved] Filter in ajax?

1 Answer 77 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.
Julien
Top achievements
Rank 1
Julien asked on 02 Feb 2012, 08:09 AM
Hi,

Could I use an external field(like this one http://demos.telerik.com/aspnet-mvc/Grid/Filtering?theme=vista )

But which filters data "live"? By "live", I mean that when I stopped writing something since some millisecond, it request automatically the server(or has data locally) to filter only data which match this text?

Other related question: I would like that this field list any row element which contains this information in one of this column. How can I do this? I only saw how to filter on one column, but now how to do "OR" conditions between columns?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 06 Feb 2012, 09:30 AM
Hello Julien,

Please check the attached project which implements filtering on some of the columns in a Grid.
Basically a text input triggers the Grid to rebind (after 600 ms of the last keystroke) and send the search field value as additional parameter to the controller.
This way you can filter your collection based on a condition which involves several columns.
I hope this helps.

Kind regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Julien
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or