Trigger RadAjaxLoadingPanel from context menu

2 posts, 0 answers
  1. Developer
    Developer avatar
    50 posts
    Member since:
    Apr 2014

    Posted 06 Jul 2017 Link to this post

    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?

  2. Eyup
    Admin
    Eyup avatar
    3626 posts

    Posted 11 Jul 2017 Link to this post

    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.
Back to Top