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

[Solved] Dynamically Bind Data to Grid

1 Answer 97 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.
Hardy Wang
Top achievements
Rank 1
Hardy Wang asked on 25 Mar 2011, 03:14 AM
Hi all,

I have a page which contains some search criteria in text boxes, drop down lists and so on. I have a Grid control on that page to display search result based on user input of search criterias.

I have a button on that page to post search conditions to controller/action, but from that point on how can I refresh the Grid with new data? I did some search and checked demo/document, it seems that the Grid control relies on DataBinding(dataBinding => dataBinding.Ajax().Select("ActionName", "ControllerName")) to perform Ajax binding, I could not find a way I can control the data of Grid.

Anybody could help out?

Thanks

Hardy

1 Answer, 1 is accepted

Sort by
0
Henry
Top achievements
Rank 1
answered on 25 Mar 2011, 12:50 PM
You can use a Jquery action to reutrn what you need from a differant controller action I dont have the code here with me at the moment but for a starting point the answer I gave to another topic (http://www.telerik.com/community/forums/aspnet-mvc/grid/manually-refresh-grid.aspx) might help.
Tags
Grid
Asked by
Hardy Wang
Top achievements
Rank 1
Answers by
Henry
Top achievements
Rank 1
Share this question
or