Smaller content window on window reopening

5 posts, 0 answers
  1. Paolo
    Paolo avatar
    426 posts
    Member since:
    Jun 2009

    Posted 29 Aug 2013 Link to this post

    i've got some problems with kendo window: i've got a window opened by grid context menu. if i open the window, close and reopen the content of the window is shown smaller than the first time.

    i'm using  the 1.9.1 version of jquery and the 2013.2.716 version of kendo min.

    why this happens?

    thanks a lot

  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 02 Sep 2013 Link to this post

    Hi Paolo,

    I am afraid the provided information is not sufficient enough in order to determine the exact reason for the issue. Is it possible to provide a simplified runnable example which demonstrates your current implementation and which I can test locally? This way I would be able to check what exactly is going wrong and provide concrete recommendations. Also, do you observe the issue in all major browsers? Thank you in advance for your time and cooperation.

    Iliana Nikolova
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Paolo
    Paolo avatar
    426 posts
    Member since:
    Jun 2009

    Posted 02 Sep 2013 Link to this post

    Hello ,
    I've posted a ticket right now....
    the id is 732653

  4. Brian
    Brian avatar
    10 posts
    Member since:
    Jun 2011

    Posted 17 Dec 2013 Link to this post

    I am seeing the same behavior (running JS 1.9 and Bootstrap).   On subsequent usages of the same Window, the window is roughly 70% smaller than the first time.   What was the resolution to the ticket?

  5. Brian
    Brian avatar
    10 posts
    Member since:
    Jun 2011

    Posted 18 Dec 2013 Link to this post

    After much research and experimentation - the approach below worked for me.  Including it here for others' reference.  In short, it uses the MVC wrapper version of the Kendo window, passes an ID to an MVC Controller method which returns a PartialView (to be displayed in the modal Kendo window).  There seemed to be many "solutions" posted here and there, but quite a lot of them either didn't meet the use case I needed, or threw JavaScript exceptions.

        <script type="text/x-kendo-template" id="logTemplate">
            <div id="viewLog-container">

        <script type="text/javascript">       
            var logPopupTmpl = kendo.template($("#logTemplate").html());
            var alWindowObject;       

    function ViewLog(e) {
                var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
                var compId = dataItem.Id;
                    url: "/Component/ViewLog/" + compId
                return false;

            $(document).ready(function() {         
                         alWindowObject = $("#viewLog").data("kendoWindow");       
         }); /* end (document).ready */
Back to Top