FileBrowser not showing

2 posts, 0 answers
  1. Owen
    Owen avatar
    2 posts
    Member since:
    Sep 2014

    Posted 30 Mar Link to this post

    I've been using the demo to set up an Image and File browser for my editor.

    The image browser seems to be working fine but the file browser doesn't open, I just get the standard window pop up.

    I am have added the custom controller code in the same way, inherited and maintained the naming, and using the default routing for my application.

    Any ideas of what could be wrong?

     

    VIEW:

    @(Html.Kendo().Editor()
    .Name("Description")
    .ImageBrowser(imageBrowser => imageBrowser
    .Image("~/Content/ProjectFiles/" + (Model.RelatedProjectId > 0 ? Model.RelatedProjectId.ToString() + "/" : "") + "{0}")
    .Read("Read", "ImageBrowser")
    .Create("Create", "ImageBrowser")
    .Destroy("Destroy", "ImageBrowser")
    .Upload("Upload", "ImageBrowser")
    .Thumbnail("Thumbnail", "ImageBrowser"))
    .FileBrowser(fileBrowser => fileBrowser
    .File("~/Content/ProjectFiles/" + (Model.RelatedProjectId > 0 ? Model.RelatedProjectId.ToString() + "/" : "") + "{0}")
    .Read("Read", "FileBrowser")
    .Create("Create", "FileBrowser")
    .Destroy("Destroy", "FileBrowser")
    .Upload("Upload", "FileBrowser"))
    )

    CONTROLLER

    public class FileBrowserController : EditorFileBrowserController
    {
    private const string ContentFolderRoot = "~/Content/";
    private static readonly string[] FoldersToCopy = new[] { "~/Content/shared/" };

    etc....

     

     

     

     

  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 30 Mar Link to this post

    Hello Owen,

    Unfortunately I wasn't able to reproduce the problem that you are facing.

    Please, check if there are any JavaScript errors on the page or if you get an 200 HTTP response from the server when loading the files data.

    Regards,
    Niko
    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
Back to Top