Hello Michael,
You have to substitute
UrlWebEditor control declared in ~/Sitefnity/Admin/ControlTemplates/Libraries/Dialogs/ItemSelector.ascx.
UrlWebEditor control populates the folders in grid structure.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Text;
usingTelerik.Cms.Web.UI;
usingSystem.Drawing.Design;
usingSystem.IO;
usingSystem.Web.UI.HtmlControls;
usingTelerik.FileManager;
/// <summary>
/// Summary description for UrlWebEditorCustom
/// </summary>
///
namespaceSitefinity.Samples
{
publicclassUrlWebEditorCustom : Telerik.FileManager.UrlWebEditor
{
publicUrlWebEditorCustom()
{
}
protectedoverridevoidCreateChildControls()
{
// base.CreateChildControls();
this.Controls.Clear();
this.manageFiles = newManageFiles();
FilesGrid fg = managerFiles.Controls[1] as FilesGrid;
// here get the RadGrid from files grid collection and set its page size
this.manageFiles.SetFilesGridColumnVisibility(false, false, false);
this.manageFiles.SelectedFolderChanged += newTelerik.FileManager.FileSystemEventHandler(manageFiles_SelectedFolderChanged);
this.Controls.Add(this.manageFiles);
}
voidmanageFiles_SelectedFolderChanged(objectsource, Telerik.FileManager.FileSystemEventArgs e)
{
base.OnValueChanged(newTelerik.Cms.Web.UI.ValueChangedEventArgs(e.Path));
}
privateManageFiles manageFiles;
}
}
Sitefinity\Admin\ControlTemplates\Libraries\Dialogs\ItemSelector.ascx
Greetings,
Ivan Dimitrov
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