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

[Solved] RadFileExplorer with RadEditor

5 Answers 141 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amey
Top achievements
Rank 1
Amey asked on 16 Sep 2009, 09:14 PM
Hello- how do we control the sort order of the folders in the RadFileExplorer?  We want the folders to appear in descending order so:

2009
2008
2007
etc...

Thanks

5 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 18 Sep 2009, 11:27 AM
Hi Christian,

The built-in FileSystemContentProvider will sort folders alphabetically as Windows explorer would. In case you wish to provide a different arrangement, you will need to subclass the provider, override one of its methods to return folders sorted in a different manner, and hook the RadEditor to use this new FileBrowserContentProvider.

More information on how to achieve this can be found in this online demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/dbfilebrowsercontentprovider/defaultcs.aspx

In case you wish to have a look at the default implementation built in RadEditor you can find it here:http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/using-custom-filebrowsercontentprovider.aspx



Greetings,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Amey
Top achievements
Rank 1
answered on 18 Sep 2009, 03:01 PM
We're having trouble setting this up - can you provide us with a working sample, with the RadEditor?
0
Fiko
Telerik team
answered on 23 Sep 2009, 02:49 PM
Hi Christian ,

I prepared a sample based on this online demo and attached it to my response. Please check it and let me know whether it fits your requirements.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Amey
Top achievements
Rank 1
answered on 23 Sep 2009, 06:02 PM
We tried the demo, but it is throwing a Compilation error when we click on Image Manager. The error is below. Could you please send us a fix for this, and also include a web.config in your solution.

FYI: The Telerik.Web.UI.dll version that we are using is: 2009.2.701.35

Thanks.

Compiler Error Message: CS0246: The type or namespace name 'RadFileExplorerPopulatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 29:     }
Line 30: 
Line 31:     protected void RadFileExplorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
Line 32:     {
Line 33:         //implement sorting for the custom Date column

Source File: c:\2Haymarket\Radeditor\149856_sortcolumns\customControl.ascx    Line: 31

0
Lini
Telerik team
answered on 24 Sep 2009, 07:00 AM
Hello,

The RadFileExplorerPopulatedEventArgs was added in the Q2 2009 service pack release (version 2009.2.826). Please update your project with the service pack to take advantage of the ExplorerPopulated server event.

All the best,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Amey
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Amey
Top achievements
Rank 1
Fiko
Telerik team
Lini
Telerik team
Share this question
or