This is a migrated thread and some comments may be shown as answers.

Collapse/expand all no slide effect

2 Answers 91 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Jul 2015, 04:04 PM

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

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen Lazarov
Telerik team
answered on 21 Jul 2015, 02:43 PM

Hello Mark,

The described behavior can be observed if the widget is bound to remote data - this is a known limitation. On initial expand there will be no animation, however on every consecutive expand / collapse the animation should be present. If your case is different from the one mentioned above we will need an isolated runnable example in order to test the issue locally and provide concrete recommendations. 

Regards,
Plamen Lazarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mark
Top achievements
Rank 1
answered on 22 Jul 2015, 08:08 AM

Thanks Plamen,

It's not a major issue so I'll have a play around with what's there.

Thanks,

Mark

Tags
TreeView
Asked by
Mark
Top achievements
Rank 1
Answers by
Plamen Lazarov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or