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

keyword search MVC Grid

2 Answers 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DAR
Top achievements
Rank 1
DAR asked on 25 Jan 2013, 09:47 PM
Hi , can you point me to some samples , documentation to go about a keyword search implementation.
We have a textbox and search button which is supposed to filter the data on the grid. 
On the button click, we pass the keyword but how do I pass it to the grid controller? 
The grid by default calls the controller to fill all the values but if they enter a keyword search,
how do I pass that value to the grid by default lists all the values. 
It's a simple keyword filter on the grid but I haven't found any help. RIght now , we use class level variables 
to make it work but there is probably a better way. 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 29 Jan 2013, 01:57 PM
Hello Dario,

You could filter the data on form submit or using an ajax call. For your convenience I am attaching a sample project showing both of the approaches. You can find more information about sending additional values to an action method in this FAQ section.

Regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
DAR
Top achievements
Rank 1
answered on 05 Feb 2013, 05:24 PM
great, thank you.
Tags
Grid
Asked by
DAR
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
DAR
Top achievements
Rank 1
Share this question
or