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

Show loading only in specific items of RadMenu

1 Answer 81 Views
AjaxLoadingPanel
This is a migrated thread and some comments may be shown as answers.
ezequiel
Top achievements
Rank 1
ezequiel asked on 09 Oct 2019, 08:27 PM

Hi,

I have a RadMenu, and I need to show the AjaxLoadingPanel only on some items.
Deal with this approach without luck.

https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxloadingpanel/how-to/show-and-hide-ajaxloadingpanel-explicitly

any suggestions?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 14 Oct 2019, 08:45 AM

Hi Ezequiel,

 

You can achieve this requirement using the following approach:

1. Disable the postback action of the RadMenu.

2. Attach the client-side menu item clicked event.

3. On the items where you don't want to initiate server-action and show the loading panel, just do nothing.
On the items where you want to cause an action in the server-side, you can call the ajaxRequest() method of RadAjaxManager which will show the loading panel:
https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/client-side-programming/overview#ajaxrequestarguments

4. Set the target panel/container which will be updated by the menu as an UpdatedControl in the AjaxSettings with the initiator control to be the RadAjaxManager itself.

I hope this will prove helpful. If you have different requirements or further instructions, feel free to elaborate on your specific scenario and send us sample screenshots or video demonstrating the desired behavior.

 

Regards,
Eyup
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
AjaxLoadingPanel
Asked by
ezequiel
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or