I can see it is actually working here: Check the differences with your code.
Treeview databound function not working in kendoui
-
05-12-2021 - |
Question
I am using kendo UI tree view widget control and I am not able to use dataBound
functionality.
$("#treeview").kendoTreeview({
dataSource: parent,
expanded: true,
dataBound: ondata,
dataTextField: ["Parent", "Child"]
}).data("kendoTreeView");
function ondata() {
alert("databound");
}
But the alert is not showing.
What's wrong with it? Am I missing any thing like script files or something?
Solution
OTHER TIPS
Kendo treeview dataBound event only trigger if the data source is local.
May be check your datasource (binding).
Comments from telerik
- "Basically current behavior is expected as currently the TreeView is bind to the data on the server side. Please note that the DataBound event is triggered only after binding data on the client side. "
(http://50.56.19.112/forums/databound-event-doesn't-fire#boLRI66aG2OF1P8AAFTdxQ)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow