5 Answers, 1 is accepted
0
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
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.
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
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.
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:
Source File: c:\2Haymarket\Radeditor\149856_sortcolumns\customControl.ascx Line: 31
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
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.
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.
