[英]Kendo UI treelist and angular - how to determine if it's fully loaded?
In my HTML, I have: 在我的HTML中,我有:
<kendo-treelist
k-auto-bind="true"
k-data-source="dataSourceAssignment"
k-columns="Assignmentcols"
k-rebind="Assignmentcols">
</kendo-treelist>
In the JS file, I am connecting it to the data source by: 在JS文件中,我通过以下方式将其连接到数据源:
$scope.dataSourceAssignment = new kendo.data.TreeListDataSource({
transport: {
read: function (options) {
//code here
},
schema: {
model: {
id: "id",
fields: {
//fields here
},
expanded: true
}
}
});
Is there any way I could determine if the tree has fully loaded (ie 'no more hourglass spinning')? 有什么方法可以确定树是否已满载(即“不再沙漏旋转”)?
I want to call a function to stop the 'loading....' UI then. 我想调用一个函数来停止“加载中...” UI。
There appears to be an onDataBound
event. 似乎有一个
onDataBound
事件。 Try adding that as an attribute of the tag. 尝试将其添加为标签的属性。
<kendo-treelist
k-auto-bind="true"
k-data-source="dataSourceAssignment"
k-data-bound="dataBoundHandler"
k-columns="Assignmentcols"
k-rebind="Assignmentcols">
</kendo-treelist>
See: http://demos.telerik.com/kendo-ui/treelist/events 请参阅: http : //demos.telerik.com/kendo-ui/treelist/events
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.