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

expand + sign without serversidecallback

1 Answer 35 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 11 Mar 2009, 06:02 PM
Hi, can you tell me how I would get the + sign to appear on nodes which don't have children without having to se the expandmode t0 serversidecallback.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 13 Mar 2009, 03:52 PM
Hi ali,

Please try this code /presuming you have a reference to the node object/

//get the LI element of the node 
var element = node.get_element(); 
//insert the span with the plus 
$telerik.$("span.rtSp", element).after("<span class='rtPlus' />"); 

I hope this helps.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
ali
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or