ImageBrowser not showing files

5 posts, 1 answers
  1. Holger
    Holger avatar
    3 posts
    Member since:
    Jan 2015

    Posted 22 Jun 2015 Link to this post

    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")
    )
    )

  2. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 24 Jun 2015 Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Holger
    Holger avatar
    3 posts
    Member since:
    Jan 2015

    Posted 24 Jun 2015 in reply to Dimo Link to this post

    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.

  5. Answer
    Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 24 Jun 2015 Link to this post

    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
  6. Holger
    Holger avatar
    3 posts
    Member since:
    Jan 2015

    Posted 25 Jun 2015 in reply to Dimo Link to this post

    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. 
Back to Top
UI for ASP.NET MVC is VS 2017 Ready