ImageBrowser show file name undefined and without Thumbnail if use EditorFor()

2 posts, 0 answers
  1. Ciget
    Ciget avatar
    3 posts
    Member since:
    Feb 2007

    Posted 23 Jan 2013 Link to this post

    Hi guys.

    I found somme issue with Editor widget if use MVC wrapper for use Html.Kendo().EditorFor(x=>x.Body).
    If use code above - when open image browser all files has name undefined and shows without Thumbnail. When i look at js code, that was rendered by MVC wrapper - it`s a bit different with code, that doc suggest to use as javascript plugin.


    So, if i use mvc wrapper code like this:
    @(Html.Kendo().Editor()
          .Name("Editor")
          .HtmlAttributes(new { style = "width: 740px;height:440px" })
    .ImageBrowser(imageBrowser => imageBrowser
        .Image("~/Content/UserFiles/Images/{0}")   
        .Read("Read", "ImageBrowser")
        .Create("Create", "ImageBrowser")
        .Destroy("Destroy", "ImageBrowser")
        .Upload("Upload", "ImageBrowser")
        .Thumbnail("Thumbnail", "ImageBrowser"))
    )
    All is ok, but problem start when i use Html.Kendo().EditorFor(x=>x.Body).

    I use latest version of libs and js files - 2012.3.1315.

    Could you help me?
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 24 Jan 2013 Link to this post

    Hi,

    I posted my reply in the other thread on the same topic. For convenience I am pasted it below and attached the project.

    There should not be any difference when using the Editor and the EditorFor helpers. I attached a sample project with the EditorFor helper. What is the difference in your scenario?

    Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top