设置树节点选中

2016-01-09 21:55:27  访问(2083) 赞(0) 踩(0)


    /// <summary>
    /// 设置树节点选中
    /// </summary>
    /// <param name="tnc"></param>
    /// <param name="strIds"></param>
    protected void FineUITreeSetNodesCheck
        (
            FineUI.TreeNodeCollection tnc,
            string strIds
        )
    {
        foreach (FineUI.TreeNode tn in tnc)
        {
            if (tn.EnableCheckBox)
            {
                if (strIds.Contains("," + tn.NodeID + ","))
                    tn.Checked = true;
                else
                    tn.Checked = false;
            }

            FineUITreeSetNodesCheck(tn.Nodes, strIds);
        }
    }


标签:设置树节点选中 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)