If you want the preselected image to be always one and the same, you will need to customize the RadEditor's FileExplorer dialog
by setting the path to the desired image as a value of the InitialPaths FileExplorer's property
. Please, keep in mind that the value set to InitialPaths
is case sensitive and should be in the same format as shown in the FileExplorer's
address bar (without "~" in front of it).
If you want to change this path multiple times, you will need to do it Client Side. There is KB article showing how to set the value of this property by passing the text to a text-box (which could be hidden), available on the following link: Using the Image and Document managers outside RadEditor
For your convenience we modified the example from the above mentioned article, so it is showing a preselected image or file now, so you can extend it further to match the needs of your custom scenario.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed