コード例 #1
0
        protected void Fill_trvDetails_Concept()
        {
            trvDetails_Concept.NodeEditingEnabled = true;
            //trvDetails_Concept.AutoPostBackOnNodeRename = chkPostBackOnRename.Checked;

            trvDetails_Concept.DragAndDropEnabled = true; // chkDragDropEnabled.Checked;
            //trvDetails_Concept.AutoPostBackOnNodeMove = chkPostBackOnMove.Checked;
            trvDetails_Concept.DropChildEnabled   = true; //chkAllowChild.Checked;
            trvDetails_Concept.DropSiblingEnabled = true; //chkAllowSibling.Checked;
            //trvDetails_Concept.DropRootEnabled = chkAllowRoot.Checked;

            var childCncptExprsnNode =
                new
                TreeViewNode
            {
                ID    = "C1",
                Value =
                    NodeValueExpressions.Serialize(
                        new NodeValueExpressions()),
                Text           = "قانون تستی",
                ImageUrl       = "Images/TreeView/folder.gif",
                EditingEnabled = false
            };

            hfConceptOrRuleIdentification.Value = childCncptExprsnNode.Value;
            hfPageIsLoadedBefore.Value          = "true";

            this.trvDetails_Concept.Nodes.Add(childCncptExprsnNode);
        }
コード例 #2
0
        protected void Fill_trvDetails_ConceptRuleEditor()
        {
            trvDetails_ConceptRuleEditor.NodeEditingEnabled = true;
            trvDetails_ConceptRuleEditor.DragAndDropEnabled = true;
            trvDetails_ConceptRuleEditor.DropChildEnabled   = true;
            trvDetails_ConceptRuleEditor.DropSiblingEnabled = true;

            var childCncptExprsnNode =
                new
                TreeViewNode
            {
                ID    = "C1",
                Value =
                    NodeValueExpressions.Serialize(
                        new NodeValueExpressions()),
                Text           = "قانون تستی",
                ImageUrl       = Session["ModulePathU"] + "Images/TreeView/folder.gif",
                EditingEnabled = false
            };

            hfConceptOrRuleIdentification.Value = childCncptExprsnNode.Value;
            hfPageIsLoadedBefore.Value          = "true";

            this.trvDetails_ConceptRuleEditor.Nodes.Add(childCncptExprsnNode);
        }