Ignore TreeView NodeClick when using RadAjaxLoadingPanel

3 posts, 1 answers
  1. Cos
    Cos avatar
    5 posts
    Member since:
    Mar 2009

    Posted 20 Mar 2009 Link to this post

    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. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Mar 2009 Link to this post

    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.
  3. Cos
    Cos avatar
    5 posts
    Member since:
    Mar 2009

    Posted 20 Mar 2009 Link to this post

    Many Thanks Albert, just what I needed.
Back to Top