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

[Solved] Select node after expand

1 Answer 19 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 1
Michele asked on 16 Apr 2013, 08:03 AM
Hi, i would select node after expand it with the marker.
How can i do it at the client side?

Regards

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 16 Apr 2013, 12:35 PM
Hello Michele,


To select the item, when it gets expanded, you could bind to the OnExpand event and manually add the t-state-selected class.
E.g.
.ClientEvents(e => e.OnExpand("expand"))

function expand(e) {
   $(e.item).find(".t-in").eq(0).addClass("t-state-selected");
}

 

Greetings,
Dimiter Madjarov
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
TreeView
Asked by
Michele
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or