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

Set default sort order for managers in the RAD Editor

3 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
bitblock R
Top achievements
Rank 1
bitblock R asked on 27 Oct 2010, 01:27 PM
Hi,
We are can click on the name of the column in the Image Manager to sort ASC and DESC.
Can we set these sorted alphabetically by default?  If yes what property we should used?
Thanks

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Oct 2010, 01:39 PM
Hello Bitblock R,

Please, see the following KB article on the subject: Sorting RadFileExplorer items by name.

Sincerely yours,
Rumen
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
0
bitblock R
Top achievements
Rank 1
answered on 27 Oct 2010, 02:13 PM
Thanks for the answer, but in my case the Rad Editor created dynamically.

htmlContentRadEditor = new RadEditor
{
    ID = htmlContentRadEditorId,
};
htmlContentRadEditor.Initialize();
htmlContentRadEditor.ImageManager.ViewPaths[0] = "~/images";
 
htmlContentRadEditor.Width = new Unit(100, UnitType.Percentage);
htmlContentRadEditor.AddLinks(Resource.WebFeedSuffix);
Controls.Add(htmlContentRadEditor);

Can I add sorting on the server side?
Thanks
0
Rumen
Telerik team
answered on 27 Oct 2010, 02:24 PM
Hi,

RadEditor does not offer a programmatic access to the elements of its built-in dialogs, because they are separate files. What you can do is to set the ExternalDialogsPath property to point to the EditorDialogs folder on the server and manually customize the \EditorDialogs\FileBrowser.ascx file as it is demonstrated in the provided KB article, e.g.

htmlContentRadEditor = new RadEditor
{
    ID = htmlContentRadEditorId,
};
htmlContentRadEditor.Initialize();
htmlContentRadEditor.ImageManager.ViewPaths[0] = "~/images";
 htmlContentRadEditor.ExternalDialogsPath = "~/EditorDialogs";
htmlContentRadEditor.Width = new Unit(100, UnitType.Percentage);
htmlContentRadEditor.AddLinks(Resource.WebFeedSuffix);
Controls.Add(htmlContentRadEditor);



Best wishes,
Rumen
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
Tags
Editor
Asked by
bitblock R
Top achievements
Rank 1
Answers by
Rumen
Telerik team
bitblock R
Top achievements
Rank 1
Share this question
or