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

Ignore TreeView NodeClick when using RadAjaxLoadingPanel

2 Answers 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cos
Top achievements
Rank 1
Cos asked on 20 Mar 2009, 11:01 AM

Hi,

I have a RadTreeView control which is used with a RadAjaxLoadingPanel.

When I drag and drop nodes the loading panel displays as required.

However I don't want the loadingpanel to display when I click a node. How can I stop the loadingpanel from displaying when I click a node.

This seems simple but I can't figure it out!

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />    
    
        <telerik:RadTreeView runat="server" ID="uiRadTreeView" EnableDragAndDrop="true"    
                             EnableDragAndDropBetweenNodes="true"    
                             MultipleSelect="true"                    
                             onnodedrop="uiRadTreeView_NodeDrop"      
                             onnodedatabound="uiRadTreeView_NodeDataBound"      
                             onnodeclick="uiRadTreeView_NodeClick"    
                             >    
        </telerik:RadTreeView>    
                 
        <telerik:RadAjaxManager id="RadAjaxManager1" runat="server" >    
            <AjaxSettings>    
                <telerik:AjaxSetting AjaxControlID="uiRadTreeView">     
                        <UpdatedControls>    
                            <telerik:AjaxUpdatedControl ControlID="uiRadTreeView" LoadingPanelId="LoadingPanel1"></telerik:AjaxUpdatedControl>    
                        </UpdatedControls>    
                    </telerik:AjaxSetting>    
            </AjaxSettings>    
        </telerik:RadAjaxManager>    
    
        <telerik:RadAjaxLoadingPanel id="LoadingPanel1" Runat="server" Transparency="30" BackColor="#E0E0E0">     
                <asp:Image style="margin-top:100px;" id="Image1" runat="server" AlternateText="Loading..." BorderWidth="10px" ImageUrl="anim.gif"></asp:Image>   

Many Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 20 Mar 2009, 01:48 PM
Hello Cos,

This is not supported - the loading panel would be shown for all ajax requests if configured via the LoadingPanelID property. What you can do is remove the LoadingPanelID setting and showing the loading panel only during drag and drop. I have attached a sample page to illustrate the idea.

Kind regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Cos
Top achievements
Rank 1
answered on 20 Mar 2009, 02:47 PM
Many Thanks Albert, just what I needed.
Tags
TreeView
Asked by
Cos
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Cos
Top achievements
Rank 1
Share this question
or