AJAX callback on RadContextMenu

2 posts, 0 answers
  1. David
    David avatar
    16 posts
    Member since:
    Jan 2012

    Posted 22 Feb 2012 Link to this post

     I’m using the RadControls for ASP.NET AJAX (Q3 2011) and Visual Studio 2010.  My website is based on the default web app that comes with Visual Studio.  Both RadAjaxManager and RadAjaxLoadingPanel are declared in the Master page…and I use server-side code in each of the content pages to add all the AJAX settings to RadAjaxManager.  This works out real nice…but I have a question about something I want to do next.  Bear with me as I’m new to using AJAX.

     

    My Master page also contains a RadContextMenu…which I dynamically load in each content page (the menu values differ per content page).  The menu item click event triggers an AJAX callback to the content page…where a RadGrid is then updated.  The loading panel gets triggered while the grid is loading.  I also have a RadComboBox declared on this same content page.  When an item is selected there (TextChanged event), I’d like to trigger the same logic as if the user had clicked an item in the RadContextMenu.  In other words, I’d like to see the RadGrid get updated AND see the loading panel.  I can easily raise the menu item clicked event in the content page, and that code gets executed, but the RadGrid itself doesn’t get updated…and I don’t see the loading panel.  I think it might have something to do with the fact that I’m triggering this code from the server-side instead of the client-side.  Is there a way on the server-side…to trigger a client-side menu item click event that performs the AJAX callback?  Any help would be appreciated.  Thanks.

     

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Feb 2012 Link to this post

    Hello,

    Could you please ensure that you have an Ajax setting in which the main RadAjaxManager updates the RadGrid control. This is needed in case you are trying to update the RadGrid ion ajaxRequest. If this is not the problem I would suggest you to paste you page declaration and the related code behind so we could see the exact scenario you have and do our best to provide proper solution.

    All the best,
    Maria Ilieva
    the Telerik team
    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 their blog feed now.
Back to Top