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

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

3 Answers 98 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Feb 2016, 05:28 PM

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;
            }
        }           

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 18 Feb 2016, 03:41 PM
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
0
Robert
Top achievements
Rank 1
answered on 15 Mar 2016, 12:14 AM

Thank Vessy, works great!

0
Vessy
Telerik team
answered on 15 Mar 2016, 07:13 AM
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.
Tags
FileExplorer
Asked by
Robert
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Robert
Top achievements
Rank 1
Share this question
or