how make vertical sliding pane splitter to be expanded by default?

4 posts, 1 answers
  1. Robert
    Robert avatar
    16 posts
    Member since:
    Feb 2016

    Posted 17 Feb Link to this post

    Hi,

    I wanted that vertical splitter to be off or expanded by default,

    resulting that left file treepane is hidden. How to do this?

    I have tried this but doesn't work, don'r also expanded option.

    thanks

      for (int i = 0; i < RadFileExplorer1.Splitter.Items.Count; i++)
            {
                RadSplitBar item = RadFileExplorer1.Splitter.Items[i] as RadSplitBar;
                if (item != null)
                {
                    item.CollapseMode = SplitBarCollapseMode.None;
                }
            }           

  2. Answer
    Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 18 Feb Link to this post

    Hello Robert,

    You can collapse the TreeView pane of FileExplorer by collapsing the pane in a similar way (not that it cannot be done before PreRenderComplete):
    protected void Page_PreRenderComplete(object sender, EventArgs e)
    {
        (RadFileExplorer1.Splitter.GetPaneById("paneTree") as RadPane).Collapsed = true;
    }

    More details on the available RadPane sever-side API can be seen here:
    http://docs.telerik.com/devtools/aspnet-ajax/api/server/Telerik.Web.UI/RadSplitter

    In addition, in case you do not want to use the FileExplorers tree pane at all, you can exclude the TreeView from the control through its VisibleControls property:
    <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="595px" Height="320px" VisibleControls="AddressBox,ContextMenus,FileList,Grid,ListView,Toolbar">
    </telerik:RadFileExplorer>


    Regards,
    Vessy
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Robert
    Robert avatar
    16 posts
    Member since:
    Feb 2016

    Posted 14 Mar in reply to Vessy Link to this post

    Thank Vessy, works great!

  5. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 15 Mar Link to this post

    Hi,

    You are welcome, Robert. I am glad the proposed solution served its purposes.

    Regards,
    Vessy
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top