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

[Solved] ImageBrowser pre select directory

3 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stefan
Top achievements
Rank 1
Stefan asked on 23 Dec 2011, 12:34 PM
Hello, 

I have overridden the Browse method of the EditorFileBrowserController class and  return the Telerik.Web.Mvc.UI.BrowseResult object in the JsonResult. In my test case I have a root directory and a subdirectory called Bla1234. When I enter the subdirectory over the ImageBrowser the display location on the top of the control is Root -> Bla1234.

But when I preselect the Root/Bla1234 directory on the server and set the corresponding Path member of the BrowseResult object to this directory, the display location only contains Bla1234. The 2 BrowseResult object seem to be identical.

How can I manage to have the same behaviour in the 2 cases ?

Thanks

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 1
answered on 09 Jan 2012, 08:49 AM
Hello, 

The resulting object of the Browse method is identical, but the display location is, as described in the former post, different. How can I change the behaviour or is it only planned to show the correct diplay location over user interaction ? 
0
Stefan
Top achievements
Rank 1
answered on 16 Jan 2012, 09:01 AM
Hi, 

I addes 2 screenshots to explain the problem. Hope somebody can help.

Thanks
0
Georgi Tunev
Telerik team
answered on 18 Jan 2012, 09:36 AM
//korchev: i don't really understand what the problem is. Ask for a project which illustrates the issue.
Hi Stefan,

 I am not quite sure that I understand the scenario. Generally speaking, if you click in the address field of the Insert Image dialog, the name of the folder should be replaced with the relative (to the root of the app) path of the folder. This path however, is not displayed by default (just like in Windows Explorer).
Is this the problem? If it is not, please provide a sample project along with reproduction steps so we can investigate further.

Regards,
Georgi Tunev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Editor
Asked by
Stefan
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or