AspxTreeList获取选中项的值

在csdn上了发了次帖子,没人回复,只有自己结贴了。http://bbs.csdn.net/topics/390706314?page=1#post-396723432

1
//通过选中的节点获取用户ID
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
List<string> listUserID = new List<string>();
    private void GetVDTTreeSelectedUserID(ASPxTreeList parentNode)
    {
        string sUserID = "";
        System.Collections.IList Nodes = dttreePubUserInfo.GetSelectedNodes();
 
        for (int i = 0; i < Nodes.Count; i++)
        {
 
            sUserID = ((DevExpress.Web.ASPxTreeList.TreeListNode)Nodes[i]).GetValue("UserID").ToString();
 
            listUserID.Add(sUserID);
 
        }
 
 
    }

 

AspxTreeList获取选中项的值

上一篇:图解JQUERY尺寸及位置定义


下一篇:HTML5 CSS3学习