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

RadGrid OnActiveRowChanged to trigger RadAjaxPanel to

2 Answers 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 17 Jul 2013, 09:19 PM
I have a RadGrid at the top of the page and a RadAjaxPanel at the bottom.  When a row from the RadGrid is clicked on to select it, I want the RadAJAXPanel to update.  The RadAjaxPanel has textboxes that will fill with information from the selected RadGrid row.

How to I use the RadAJAXManager to trigger the RadAJAXPanel to update when a row is clicked on in the RadGrid?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 22 Jul 2013, 12:30 PM
Hello George,

Thank you for contacting us.

For you scenario, the best solution is to use the client-side OnRowSelect event of the RadGrid to send ajax request to the RadAjaxPanel with row index as argument. This will trigger the server-side OnAjaxRequest event of the RadAjaxPanel. Then in the handler of this event you can set the information in your text boxes depending on the selected row index.

I am attaching a simple project demonstrating this approach.

Additionally, I should mention that it is recommended to avoid using both RadAjaxManager and RadAjaxPanel at the same time. More information about that you can find in our help article: Ajaxifying Controls Wrapped in RadAjaxPanel and Added to RadAjaxManager Settings.

If you have any further questions, please feel free to contact us again.

Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
George
Top achievements
Rank 1
answered on 23 Jul 2013, 03:40 AM
Thank you!

I'll try this out.
Tags
Ajax
Asked by
George
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
George
Top achievements
Rank 1
Share this question
or