How to obtain the node value after onselectednodechanged is dynamically loaded in Treeview with ontreenodepopulate
Source: Internet
Author: User
In section 2.0, the Treeview uses ontreenodepopulate to dynamically load data. The data can be loaded. But how can I obtain a specific node VALUE OF THE Treeview?
In addition, as long as the page is PostBack, no data is loaded by the Treeview.
How can I solve these problems? In addition, as long as the page is PostBack, no data is loaded by the Treeview.
Your binding has been put in the wrong place. Do not place it in if (! Ispostback) The Treeview in section 2.0 uses ontreenodepopulate to dynamically load data. The data can be loaded, but how can we get the specific node value of the Treeview?
----------------
Use treeview1.nodes [0]. Value to obtain the value of the corresponding node. If it is a subnode, use:
This. treeview1.nodes [0]. childnodes [I]. Value
This. treeview1.nodes [0]. childnodes [I]. childnodes [I]. Value
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service