2

我在将 Kendo PanelBar 与 ng-repeat 结合使用并动态修改数据源时遇到问题!

你可以在这里看到一个小演示:http: //trykendoui.telerik.com/@IT-SCHMITZ/OrEK/2

单击“添加新专辑”按钮后,您可以看到面板栏中添加了一个新项目。不幸的是,它没有正确渲染。

问候,丹尼尔

4

1 回答 1

2

This cannot work with ng-repeat once the widget is initialized. A workaround would be to use the dataSource argument, but since the PanelBar does not currently support a live data source you need to use k-rebind to rebuild the widget when the data changed.

Here's an example: http://trykendoui.telerik.com/@mishoo/Udep

于 2014-06-18T13:56:24.520 回答