New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Configure RadFileExplorer on the Server

For convenience the subcontrols of RadFileExplorer (RadMenu, RadUpload, etc.) are exposed so developers could change their look or behavior, however the configuration of the RadFileExplorer itself is done in RadFileExplorer.Configuration.

C#
protected void Page_Load(object sender, EventArgs e)
{
	string[] paths = new string[] { "~/" };
	// This code sets RadFileExplorer's paths
	RadFileExplorer1.Configuration.ViewPaths = paths;
	RadFileExplorer1.Configuration.UploadPaths = paths;
	RadFileExplorer1.Configuration.DeletePaths = paths;

	// Sets Max file size
	RadFileExplorer1.Configuration.MaxUploadFileSize = 10485760;

	// Enables Paging on the Grid
	RadFileExplorer1.AllowPaging = true;
	// Sets the page size
	RadFileExplorer1.PageSize = 20;

	//Load the default FileSystemContentProvider
	RadFileExplorer1.Configuration.ContentProviderTypeName = 
		typeof(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName;
}

See Also

In this article
See Also
Not finding the help you need?
Contact Support