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
2115
How to set a TreeNode to not editable in an editable UltraTree
posted

Hi,

I have an UltraTree for which I made the node editable by setting LabelEdit and UseEditor to true.

Now I have a single TreeNode for which I want to disable this.

Tried to do it with AllowCellEdit = AllowCellEdit.Disabled, but after this, editing this TreeNode still works...

Any ideas?

Kind regards, Lieven Cardoen

Parents
  • 469350
    Verified Answer
    Offline posted

    AllowCellEdit is for cells within a node. It's for when the tree is displaying as a grid with cells and columns. So it doesn't affect LabelEdit, which is editing the entire node.

    So what you need to do is this:

    this.ultraTree1.Nodes[0].Override.LabelEdit = Infragistics.Win.DefaultableBoolean.False;

    You could also handle the BeforeLabelEdit event and cancel it for any node(s) you want.

Reply Children