protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack && !IsCallback) { ASPxTreeList1.DataBind(); ASPxTreeList1.ExpandAll(); } }
protected void Page_Load(object sender, EventArgs e) { TreeListNode nodeRoot = ASPxTreeList1.AppendNode(1); nodeRoot.SetValue("Column1", "root"); TreeListNode nodeChild = ASPxTreeList1.AppendNode(2, nodeRoot); nodeChild.SetValue("Column1", "child"); ASPxTreeList1.ExpandAll(); }
protected void Page_Init(object sender, EventArgs e) { if (!IsPostBack) { Session.Clear(); } ASPxTreeList1.DataSource = DataHelper.GetData(); ASPxTreeList1.DataBind(); ASPxTreeList1.ExpandAll(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ASPxTreeList1.DataBind(); ASPxTreeList1.ExpandAll(); if (ASPxTreeList1.FocusedNode == null) { ASPxTreeList1.Nodes[0].Focus(); } ASPxTreeList1.StartEdit(ASPxTreeList1.FocusedNode.Key); } }
protected void ASPxTreeList1_BeforeGetCallbackResult(object sender, EventArgs e) { ASPxTreeList1.ExpandAll(); }