Redraw after changing parent display

2 posts, 1 answers
  1. Cesar
    Cesar avatar
    3 posts
    Member since:
    Dec 2010

    Posted 29 Mar Link to this post

    When you initialize a Gantt inside a div with "display:none", it cannot get the proper width, and it renders incorrectly.

    Is there any way to redraw the gantt after make the parent visible?

     

    Something like:

    <script type="text/javascript">

    function showAll() {
            $("#div-parent").css("display", "block");
            var gantt = $("#gantt").data("kendoGantt");
            gantt.redraw();
        }

    </script>

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 29 Mar Link to this post

    Hi,

    The kendo widgets don't have a redraw method, but you can use the resize method, which should work in your case.

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