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

[Solved] Grid with search criteria

2 Answers 48 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.
Alex
Top achievements
Rank 1
Alex asked on 27 Aug 2010, 03:08 AM
Hi,

I think it's very typical scenario that a search result in a grid style. However, I cannot find any example on using Telerik Grid for such scenario. I'm using ASP.NET MVC 2 currently.

The first problem is about data binding. It seems that it is typical to get search result list by using HTTP POST. However, the Telerik Grid seems not too friendly with this if you want to use any features like sorting, paging. It uses HTTP GET as callback.

The second problem is difficulty in using the Ajax binding. I don't know how can it works with the model binder inside ASP.NET MVC. Is there any example that I can follow? Thanks!

Regards,
Alex

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Aug 2010, 07:32 AM
Hello Alex,

I am sending you a sample project showing a possible implementation. You can use it to get started.

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
Mark
Top achievements
Rank 1
answered on 15 Dec 2010, 08:50 PM
I have a requirement for the search filters and results to be shown on the same page.  EF4 is our ORM, and we have been having trouble getting AJAX to do paging, etc for the result grids. Server side paging seems to be fine, but nothing happens when using AJAX with the same data retrieval. I've ran into one error after another, and have run out of time for any more trial and error iterations.

My data structure is like Parent-Child-GrandChild.  Primary search field is date-range, and about 5 other drop-down list values (filters are from all data levels)

Please provide guidance/best practice for creating a page with search criteria, and how to display the results in related Telerik grids.  Would it be better to have one complex class and use heirachy grids, or 3 sperate classes and grids?  Any special concerns using Entity Framework 4 and MVC Grid Ajax?  

Any guidance would be greatly appreciated.

Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or