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

[Solved] Select grid row and populate form below

1 Answer 86 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.
KBN
Top achievements
Rank 1
KBN asked on 14 Mar 2011, 03:54 PM
Can someone please tell me the best approach to take to implement the following situation:

I am using the Telerik grid in an MVC 2 project, loaded via ajax. When a user selects a grid row, I want to populate a form below the grid with all of the details for the item selected (including details not shown in the grid). What is the best way to pass the values onto the form - jquery? Can you point me in the right direction as to how to do this?

Thank you,
KBN

1 Answer, 1 is accepted

Sort by
0
Demon
Top achievements
Rank 1
answered on 15 Mar 2011, 08:40 AM
You can use a GET request with a query string...

http://demos.telerik.com/aspnet-mvc/grid/selectionserverside

... or use a <form> and submit a parameter with some <input> elements and a POST request.

http://demos.telerik.com/aspnet-mvc/grid/checkboxesserverside

I recommend you to take a look at all demos - they helped me a lot, being an MVC beginner as well.
Tags
General Discussions
Asked by
KBN
Top achievements
Rank 1
Answers by
Demon
Top achievements
Rank 1
Share this question
or