Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
How to make a UltraWinTree node editable?
posted

I am trying to implement a property grid type of control.  I am starting with your PROPERTYGRID CS and trying to figure out how to make the right hand side nodes editable.  Just to see if I could make it editable, I tried this:

                //    Set the UseEditor property to DefaultableBoolean.True
                //    so that embeddable editors are used
                this.ultraTree1.Override.UseEditor = DefaultableBoolean.True;

                //    Set the ShowEditorButtons property to Always so that
                //    embeddable editors display their edit elements at all times.
                this.ultraTree1.Override.ShowEditorButtons = ShowEditorButtons.Always;

                //    Since all the nodes in level zero are the same, we can assign
                //    their editor at the NodeLevelOverrides level
                this.ultraTree1.NodeLevelOverrides[0].Editor = new EditorWithText();

No luck, it was still read only.  I originally tried the following code on each node as it is created, but it, too, does not work:

                node.Override.Editor = this.editorWithText;
                node.Override.LabelEdit = DefaultableBoolean.True;
                node.Override.UseEditor = DefaultableBoolean.True;
                node.Override.ShowEditorButtons = ShowEditorButtons.Always;

What am I missing?

Sam