Editor in Window

5 posts, 0 answers
  1. Nick
    Nick avatar
    4 posts
    Member since:
    Sep 2012

    Posted 21 Sep 2012 Link to this post

    When placing an Editor in a Window the Editor control does not render correctly (tried this in IE 10, 9, 8 and FireFox)

    We are using the latest verion of the MVC Wrappers: 2012.2.913.340

    Below is an example from our code (Partial View)
    @using (Ajax.BeginForm("AddComment", "Incident", new AjaxOptions { HttpMethod = "Post", OnSuccess = "onSuccess('AddWindow')" }))
        <div class="editor-field">
            @(Html.Kendo().EditorFor(model => model.Comment)
                    .Tools(tool => tool
            @Html.ValidationMessageFor(model => model.Comment)
        @Html.HiddenFor(model => model.IncidentId)
            <input type="submit" value="Add Comment" class="k-button" />

    On our Detail page:
               .Title("Add Comment")
               .Content(@<div>@Html.Partial("IncidentCommentAddPartial", Model.AddComment)</div>)

    Our onclick function for the window:
    $('#addComment').click(function (e) {

    I have attached an image of how the partial view is being rendered in the Window
  2. Greg
    Greg avatar
    19 posts
    Member since:
    Jun 2012

    Posted 14 Oct 2012 Link to this post

    I am having the same Issue as Nick
    Any workarounds/solutions , anything??

    This nesting technique worked in Telerik MVC but does not work in KendoUI MVC

    Need help on this?


    Oct 15,2012
  3. Lilis
    Lilis avatar
    1 posts
    Member since:
    Aug 2012

    Posted 23 Oct 2012 Link to this post

    I also have the same problem with Nick.

    It'd be great if there's solution for this.

  4. Greg
    Greg avatar
    19 posts
    Member since:
    Jun 2012

    Posted 22 Nov 2012 Link to this post

    I think I got it to work
    Have a look at this post


  5. Dimo
    Dimo avatar
    8404 posts

    Posted 23 Nov 2012 Link to this post


    There are two separate problems, which cause the unexpected Editor look:

    1. The widget cannot adjust its layout when initialized hidden
    2. The Editor is initialized twice when initialized before the Window, because the Editor is moved in the DOM and its intiialization script is executed twice.

    Problem 2 is fixed in the latest internal build, while problem 1 will be resolved in the next internal build of Kendo UI.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top