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

Trigger RadAjaxLoadingPanel from context menu

1 Answer 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Developer
Top achievements
Rank 1
Developer asked on 06 Jul 2017, 09:28 AM

Hi,

How can I trigger the RadAjaxLoadingPanel when I click on radtreeview context menu item.

Adding this to the ajax manager does not work

<telerik:AjaxSetting AjaxControlID="RadTreeViewContextMenu1">
         <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="gridLoadingPanel" UpdatePanelCssClass="" />
         </UpdatedControls>
     </telerik:AjaxSetting>

 

Likewise if I add this then the RadAjaxLoadingPanel is shown everytime a node is clicked, which I dont want,

<telerik:AjaxSetting AjaxControlID="RadTreeView1">
         <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="gridLoadingPanel" UpdatePanelCssClass="" />
         </UpdatedControls>
     </telerik:AjaxSetting>

 

Any idea please?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Jul 2017, 06:54 AM
Hello,

Try to add the context menu to the UpdatedControls collection to resolve this issue:
<telerik:AjaxSetting AjaxControlID="RadTreeViewContextMenu1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadTreeViewContextMenu1" LoadingPanelID="gridLoadingPanel" />
        <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="gridLoadingPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeView
Asked by
Developer
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or