除了使用JavaScript选择的树形视图之外,我们如何关闭树形视图的根节点? [英] How can we close root node of treeview except selected one using javascript?

查看:51
本文介绍了除了使用JavaScript选择的树形视图之外,我们如何关闭树形视图的根节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带Treeview控件的aspx页面.当我单击一个根节点时,所有其他根节点将关闭.我们如何使用javascript做到这一点.请帮助我

i have aspx page with treeview control. when i click one root node all other root node will close. how can we do this using javascript. please help me

推荐答案

您可以使用jquery查找元素并调用它的click事件.或者,您可以查看页面以查看正在调用的代码,然后自己调用它.您可以使用Chrome浏览器查看元素的代码,并在需要时随页面加载的任何js文件中设置断点.
You can use jquery to find the element and call it''s click event. Or you can view the page to see what code is being called, and call it yourself. You can use Chrome to view the code of an element and set breakpoints in any js file loaded with the page if you need to.


这篇关于除了使用JavaScript选择的树形视图之外,我们如何关闭树形视图的根节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆