Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 剑道UI树形和棱角-如何确定它是否';满了吗?_Javascript_Angularjs_Kendo Ui_Kendo Treelist - Fatal编程技术网

Javascript 剑道UI树形和棱角-如何确定它是否';满了吗?

Javascript 剑道UI树形和棱角-如何确定它是否';满了吗?,javascript,angularjs,kendo-ui,kendo-treelist,Javascript,Angularjs,Kendo Ui,Kendo Treelist,在我的HTML中,我有: <kendo-treelist k-auto-bind="true" k-data-source="dataSourceAssignment" k-columns="Assignmentcols" k-rebind="Assignmentcols"> </kendo-treelist> 是否有任何方法可以确定树是否已满载(即“不再旋转沙漏”) 我想调用一个函数来停止“加载…”UI。似乎有一个onDataBound事

在我的HTML中,我有:

<kendo-treelist 
   k-auto-bind="true" 
   k-data-source="dataSourceAssignment" 
   k-columns="Assignmentcols"
   k-rebind="Assignmentcols">
</kendo-treelist>
是否有任何方法可以确定树是否已满载(即“不再旋转沙漏”)


我想调用一个函数来停止“加载…”UI。

似乎有一个
onDataBound
事件。尝试将其添加为标记的属性

<kendo-treelist 
   k-auto-bind="true" 
   k-data-source="dataSourceAssignment" 
   k-data-bound="dataBoundHandler" 
   k-columns="Assignmentcols"
   k-rebind="Assignmentcols">
</kendo-treelist>


请参阅:

这很有效。不过,我必须设置一个条件,以便数据绑定处理程序仅在我加载树时触发,而不是在页面最初加载时触发。
<kendo-treelist 
   k-auto-bind="true" 
   k-data-source="dataSourceAssignment" 
   k-data-bound="dataBoundHandler" 
   k-columns="Assignmentcols"
   k-rebind="Assignmentcols">
</kendo-treelist>