Hi,
I've added a collapse/expand all option to my treeview, which works fine, but doesn't have any slide effects. On the demo one (http://demos.telerik.com/kendo-ui/treeview/api) it has slide effects for this.
Are there settings I need to apply somewhere to make this work? I have 3 treeviews on top of each other and my button works for all at once - here are the relevant bits of javascript code :-
// 1. collapse all treeview nodes
var treeview = $("#TreeViewSurveyByRisk").data("kendoTreeView").collapse(".k-item");
var treeview = $("#TreeViewSurveyByRecAction").data("kendoTreeView").collapse(".k-item");
var treeview = $("#TreeViewSurveyByLocation").data("kendoTreeView").collapse(".k-item");
// 2. expand all treeview nodes
var treeview = $("#TreeViewSurveyByRisk").data("kendoTreeView").expand(".k-item");
var treeview = $("#TreeViewSurveyByRecAction").data("kendoTreeView").expand(".k-item");
var treeview = $("#TreeViewSurveyByLocation").data("kendoTreeView").expand(".k-item");
Any help would be appreciated.
Thanks, Mark