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

AJAX callback on RadContextMenu

1 Answer 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Feb 2012, 07:57 PM

 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.

 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 Feb 2012, 10:03 AM
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.
Tags
Ajax
Asked by
David
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or