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

[Solved] Search on server?

0 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ahmed Ilyas
Top achievements
Rank 1
Ahmed Ilyas asked on 27 Sep 2011, 11:38 AM
Using Telerik grid control for MVC (not radgrid I believe).

I am wondering if say I have a grid on the screen which is to be bound on a view model (the model contains properties), and I wish to NOT initially bind data on the grid, but instead present the user with an empty grid - I want the user to be able to type in on a column of their choice, to search based on that column.

How would I be able to do this? (keeping as much of the IQueryable as possible)

so lets say I have this ViewModel:

ItemID
ItemName
ItemDescription
ItemCreatedAt


These are my columns on the Telerik MVC Grid. The grid displays initially with no data. great.

Now, if the user types in the column "ItemName" for a value of "Batteries" or "Lights", I want to be able to query my DB for these search and bring back the results and display it. So the columns on the grid will be a searchable filter

how can I easily, and quickly, do this?

Tags
General Discussions
Asked by
Ahmed Ilyas
Top achievements
Rank 1
Share this question
or