This is a migrated thread and some comments may be shown as answers.

Scheduler not rendering when hidden/shown using ng-show

1 Answer 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Toby
Top achievements
Rank 1
Toby asked on 23 Mar 2016, 09:37 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 24 Mar 2016, 09:39 AM
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!
 
Tags
Scheduler
Asked by
Toby
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or