RadGrid OnActiveRowChanged to trigger RadAjaxPanel to

3 posts, 1 answers
  1. George
    George avatar
    13 posts
    Member since:
    Jun 2013

    Posted 17 Jul 2013 Link to this post

    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. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1801 posts

    Posted 22 Jul 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. George
    George avatar
    13 posts
    Member since:
    Jun 2013

    Posted 22 Jul 2013 Link to this post

    Thank you!

    I'll try this out.
Back to Top