예제 #1
0
        protected override void OnAfterLabelEdit(NodeLabelEditEventArgs e)
        {
            base.OnAfterLabelEdit(e);
            LabelEdit    = false;
            e.CancelEdit = true;

            ExtTreeNode node = e.Node as ExtTreeNode;

            if (node != null && e.Label != null)
            {
                node.AfterLabelEdit(e.Label);
            }
            SortParentNodes(e.Node);
        }
예제 #2
0
        protected override void OnAfterLabelEdit(NodeLabelEditEventArgs e)
        {
            base.OnAfterLabelEdit(e);
            LabelEdit    = false;
            e.CancelEdit = true;

            ExtTreeNode node = e.Node as ExtTreeNode;

            if (node != null)
            {
                //node.Text = labelEditOldLabel;
                //labelEditOldLabel = null;
                if (e.Label != null)
                {
                    node.AfterLabelEdit(e.Label);
                }
            }
            SortParentNodes(e.Node);
            SelectedNode = e.Node;
        }