when user on mouseover of the +/- icons i need to Expand/Collapse tree nodes at client side.
Thanks
Sree
2 Answers, 1 is accepted
0
Aneliya Petkova
Telerik team
answered on 08 Aug 2014, 10:00 AM
Hi,
Please try the following JavaScript code:
var $ = $telerik.$;
function pageLoad() {
var treeView = $find("<%=RadTreeView1.ClientID %>").get_element();
var rtMinus = $(treeView).find('.rtMinus');
var rtPlus = $(treeView).find('.rtPlus');
rtMinus.on("mouseover", function myfunction(e) {
this.click();
});
rtPlus.on("mouseover", function myfunction(e) {
this.click();
});
}
I made you a video, showing how this custom code works at my side.
Hope this would be helpful.
Regards,
Aneliya Petkova
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.