Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > parent folder is not coming in center
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered parent folder is not coming in center

Feed from this thread
  • goldy avatar

    Posted on Mar 14, 2011 (permalink)

    hello to all I have a telerik radtree view..

     <telerik:RadTreeView runat="server" ID="RadTreeView1" DataSourceID="SqlDataSource1"
                                DataFieldID="nodeid" DataFieldParentID="parentId" DataTextField="nodehtml" DataValueField="nodeid"
                                OnNodeClick="RadTreeView1_NodeClick" Skin="WebBlue" OnClientContextMenuShowing="onClientContextMenuShowing"
                                OnClientContextMenuItemClicking="setAsDesktopItemClickedtree" ForeColor="White">
                                <ContextMenus>
                                    <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
                                        <Items>
                                            <telerik:RadMenuItem Value="ADDFolder" Text="ADD Folder" ImageUrl="~/Img/Outlook/12.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="Upload" Text="Upload File" ImageUrl="~/Img/Outlook/11.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="Rename" Text="Rename" ImageUrl="~/Img/Outlook/rename.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="Delete" Text="Delete" ImageUrl="~/Img/Outlook/7.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="Move" Text="Move" ImageUrl="~/Img/Outlook/8.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="View" Text="View" ImageUrl="~/Img/Outlook/9.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Value="Email" Text="Email" ImageUrl="~/Img/Outlook/3.gif">
                                            </telerik:RadMenuItem>
                                              <telerik:RadMenuItem Value="Properties" Text="Properties" ImageUrl="~/Img/Outlook/3.gif">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem IsSeparator="true">
                                            </telerik:RadMenuItem>
                                        </Items>
                                        <CollapseAnimation Type="none" />
                                    </telerik:RadTreeViewContextMenu>
                                </ContextMenus>
                                <DataBindings>
                                    <telerik:RadTreeNodeBinding TextField="nodehtml" />
                                    <telerik:RadTreeNodeBinding Depth="0" TextField="nodehtml" Expanded="true" CssClass="rootNode" />
                                </DataBindings>
                            </telerik:RadTreeView>




    Its working fine but whats happening that...u can see sreenshot that whenever i add a file or folder the tree view is expanding in right side..
    I wants that  whatever i add it remains in center with its node position..
    Attached files

  • Kate Kate admin's avatar

    Posted on Mar 17, 2011 (permalink)

    Hello goldy,

    I see that in the code you have pasted here you use DataBindings which is part of the Rad Ajax controls. Do you use Rad Ajax controls of the Rad Classic ones? Can you also explain in more details what you need to achieve because I am not quite sure I understand the problem that you encounter?

    Best wishes,
    Kate
    the Telerik team

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > parent folder is not coming in center