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

ImageBrowser not showing files

4 Answers 173 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Holger
Top achievements
Rank 1
Holger asked on 22 Jun 2015, 02:50 PM

Using Editor from the demo, but the ImageBrowser is not rendering the UI to select files. Instead it prompts to enter a URL (see attached screenshot)

Looking at the source the Html.Kendo().Editor helper generates it appears that the ImageBrowser properties are ignored and not included in the AJAX call to open the editor.

@(Html.Kendo().Editor()
.Name("editor")
.Tools(tools => tools.Clear().InsertImage().InsertFile())
.ImageBrowser(imageBrowser => imageBrowser
.Image("~/Content/UserFiles/Images/{0}")
.Read("Read", "ImageBrowser")
.Create("Create", "ImageBrowser")
.Destroy("Destroy", "ImageBrowser")
.Upload("Upload", "ImageBrowser")
.Thumbnail("Thumbnail", "ImageBrowser"))
.FileBrowser(fileBrowser => fileBrowser
.File("~/Content/UserFiles/Images/{0}")
.Read("Read", "FileBrowser")
.Create("Create", "FileBrowser")
.Destroy("Destroy", "FileBrowser")
.Upload("Upload", "FileBrowser")
)
)

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Jun 2015, 10:41 AM
Hello Holger,

Probably you are using a custom combined script or separate Kendo UI script files, and you have not included the ImageBrowser and FileBrowser scripts.

http://docs.telerik.com/kendo-ui/install/custom#editor

A less probable assumption is that you are using a very old Kendo UI script file, which does not include the ImageBrowser at all.

Regards,
Dimo
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Holger
Top achievements
Rank 1
answered on 24 Jun 2015, 01:23 PM

Were'e including this:

bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/2015.1.408/kendo.all.min.js",
"~/Scripts/kendo/2015.1.408/kendo.aspnetmvc.min.js"));

So it looks like we have a recent version and "all" is included.

0
Accepted
Dimo
Telerik team
answered on 24 Jun 2015, 02:07 PM
Hello Holger,

Please do not open duplicate forum threads and support tickets with the same question, thank you.

The provided information so far does not suggest the cause of the unexpected behavior. Please send a runnable example or a live URL.

Regards,
Dimo
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Holger
Top achievements
Rank 1
answered on 25 Jun 2015, 07:00 PM
I found the issue. I was using a custom route configuration and there was no route for the ImageBrowser controller. That resulted the JavaScript for the ImageBrowser not being generated. 
Tags
Editor
Asked by
Holger
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Holger
Top achievements
Rank 1
Share this question
or