Scheduler not rendering when hidden/shown using ng-show

2 posts, 0 answers
  1. Toby
    Toby avatar
    1 posts
    Member since:
    Mar 2016

    Posted 23 Mar Link to this post

    I tried a few ways to refresh / re-render it, but none worked for me.  

    Here is an example: http://dojo.telerik.com/oGaJi

    - if you press the "Toggle View" button, it will show the scheduler via the ng-show, but it doesn't render properly

    - if you set $scope.switchVal = true; by and re-run it, the scheduler will render as it should

     

  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 24 Mar Link to this post

    Hi Toby,

    Please note that ng-show and ng-hide are directives that are not optimized for Kendo UI Widgets, and can cause the behavior that you are seeing. If you think that we should add support for ng-show and ng-hide you can submit this as a feature request on UserVoice, so that it is considered for implementation in a future release. As a workaround I would suggest you to use the jQuery show()/hide() methods, and make sure that you are not initializing the widgets from hidden elements, as this might cause incorrect sizing issues


    Regards,
    Helen
    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