RadTreeView DragAndDrop Ajax Problem

5 posts, 0 answers
  1. Pablo
    Pablo avatar
    5 posts
    Member since:
    Oct 2010

    Posted 26 Oct 2010 Link to this post

    I have a page with a usercontrol. The usercontrol contains a RadPanelBar, and within this I have a ItemTemplate with a RadTreeView. I need  to do DragAndDrop a HTML element on my page. I put the user control within a radAjaxPanel to ajaxify, but it's do always full postback when using DragAndDrop.
    This is the code.

    <radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%" Skin="WebBlue">
            <CollapseAnimation Duration="100" Type="None" />
            <Items>
                <telerik:RadPanelItem Expanded="True" Text="Templates List">
                    <Items>
                        <telerik:RadPanelItem >
                            <ItemTemplate>
                                 
                                 
                                    <div class="ff" style="padding: 2px 2px 2px 2px">
                                        Show templates below:</div>
                                    <div class="ff" style="padding: 2px 2px 2px 2px">
                                        <asp:DropDownList ID="ddlType" runat="server" class="ff" Width="98%" AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                                            <asp:ListItem Value="0">Product</asp:ListItem>
                                            <asp:ListItem Selected="True" Value="1">Structural</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div id="divProductsToShow" runat="server" class="ff">
                                        <span>
                                            <asp:LinkButton ID="lnkShowRelated" runat="server" Enabled="true" OnClick="lnkShowRelated_Click">Show related</asp:LinkButton>
                                            /
                                            <asp:LinkButton ID="lnkShowAll" runat="server" Enabled="false" Font-Bold="true" OnClick="lnkShowAll_Click">Show all</asp:LinkButton>
                                        </span>
                                    </div>
                                    <div class="ff" style="padding: 2px 2px 2px 2px">
                                         <radA:RadAjaxPanel ID="RadAjaxPanel8" runat="server">
                                        <telerik:RadTreeView ID="RadTreeView1" runat="server"  EnableDragAndDrop="true" OnNodeDrop="RadTreeView1_NodeDrop" >
                                        </telerik:RadTreeView>
                                        </radA:RadAjaxPanel>
                                    </div>
                                    <div class="ff" style="padding: 2px 2px 2px 2px">
                                        <a href="mgrCommunicationTemplates3.aspx" class="TableLink">Add Other</a>
                                    </div>
                            
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Expanded="True" Width="100%" Text="Most Used Templates">
                    <Items>
                        <telerik:RadPanelItem>
                            <ItemTemplate>
                                <div class="ff" style="padding: 2px 2px 2px 2px">
                                    <telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="true" OnNodeDrop="RadTreeView2_NodeDrop" OnClientNodeDropping="ClientNodeDropping" >
                                    </telerik:RadTreeView>
                                </div>
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
            <ExpandAnimation Duration="100" Type="None" />
        </telerik:RadPanelBar>
        </radA:RadAjaxPanel>
  2. Pablo
    Pablo avatar
    5 posts
    Member since:
    Oct 2010

    Posted 26 Oct 2010 Link to this post

    Hi again,
    I thought the problem was that the RadTreeview was inside a RadPanelBar in a user control, but put one on my page RadTreeView (inside a RadAjaxPanel) and I still have the same problem.

     I do not understand what happens. Why is the full postback?

    http://www.telerik.com/community/forums/reply-thread.aspx?messageId=0&threadId=360873
  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Oct 2010 Link to this post

    Hi Pablo,

    Could you please let me know what the result is if regular asp UpdatePanel is used instead of RadAjax?

    Greetings,
    Maria Ilieva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Pablo
    Pablo avatar
    5 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post


    The result is the same. i Already tried a RadAjaxManager, RadAjaxPanel, UpdatePanel asp (Conditional). A couple of days ago I had this problem

    http://www.telerik.com/community/forums/aspnet-ajax/ajax/radpanelbar-how-to-unselect-item.aspx

    If I use the Net2 RadAjaxPanel my user control if it works, but if I DragAndDrop not work.


    I think this is also causing this new problem. It's something in my application, because I made a new application with a similar scenario and there is no problem.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Oct 2010 Link to this post

    Hi Pablo,

    As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.

    Kind regards,
    Maria Ilieva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top