protected void TreeGrid_OnSelectedNodeChanged(object sender, TB.Web.UI.WebControls.TreeGridNodeEventArgs e)
        {
            TreeGridRow tgr = (TreeGridRow)e.Node.DataItem;
            string      val = e.Node.Value;
            //根据选中行切换功能按钮
            string level = e.Node.Depth.ToString();

            Panel1.Visible = false;
            Panel2.Visible = false;
            Panel3.Visible = false;
            Panel4.Visible = false;
            switch (level)
            {
            case "0":
                //切换为1级订单功能按钮
                Panel1.Visible = true;
                break;

            case "1":
                //切换为2级订单功能按钮
                Panel2.Visible = true;
                break;

            case "2":
                //切换为3级订单功能按钮
                Panel3.Visible = true;
                break;

            case "3":
                //切换为4级订单功能按钮
                Panel4.Visible = true;
                break;
            }
        }
Beispiel #2
0
 protected void TreeGrid_NodePopulate(object sender, TB.Web.UI.WebControls.TreeGridNodeEventArgs e)
 {
 }