protected void btnNuevo_Click(object sender, System.EventArgs e)
 {
     newNode        = new EO.Web.TreeNode("Nuevo");
     newNode.ItemID = "9999";
     Arbol.SelectedNode.ChildNodes.Add(newNode);
     Arbol.SearchItems("9999");
 }
    private void GenerarArbol()
    {
        SqlDataReader dr = SUPER.DAL.SECTOR.Arbol();

        string sIdSector   = "";
        string sIdSegmento = "";
        int    indice      = 0;

        while (dr.Read())
        {
            if (sIdSector != dr["identificador1"].ToString())
            {
                newNode        = new EO.Web.TreeNode(dr["denominacion1"].ToString());
                newNode.ItemID = dr["identificador1"].ToString();
                Arbol.Nodes.Add(newNode);
                sIdSector = dr["identificador1"].ToString();
                indice++;
            }
            if (sIdSegmento != dr["identificador2"].ToString())
            {
                newNode        = new EO.Web.TreeNode(dr["denominacion2"].ToString());
                newNode.ItemID = dr["identificador2"].ToString();
                Arbol.Nodes[indice - 1].ChildNodes.Add(newNode);
                sIdSegmento = dr["identificador2"].ToString();
            }
        }
        dr.Close();
        dr.Dispose();
    }
 protected void CallbackPanel_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     //Encontrar el nodo que ha hecho click
     EO.Web.TreeNode node = (EO.Web.TreeNode)Arbol.FindItem(e.Parameter);
 }