Hi,
When adding a new node, tree.Nodes.Add(null, "my node")
can I make this node a button or add a button to it ?
the node is read only, so I only need a clickable button.
thanks.
Hello,
In order to research the best solution for you can you please specify what ViewStyle your UltraTree is set to.
Waiting for your feedback
it is set to grid, thanks
Hello Abraham,
Thank you for contacting Infragistics Support.
In order to add a button to your UltraTree nodes you may set the tree editor property to EditorWithText. You need to add left or right button to the EditorWithText. While you need the nodes to be read-only and the button to be clickable you will need to override the TextBox getter of the EditorWithText and to set it as read-only.
Please find a sample solution implementing this approach.
Please let me know if this is what you are looking for or if I am missing something.
thank you for the sample milko.
the sample isn't working as it should.
when I click the button nothing happens, it seems it cannot be clicked.
I am using version 12.1.
thanks
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Hi Kal,
I just ran Milko's sample in both 14.1 (the original version he posted) and also in 12.1 and it works fine for me in both cases.
I went back to some older versions, though, like 10.3 and I am getting the behavior you describe where the click event doesn't fire. So it seems likely that there was a bug that existed in the release of 12.1 that was fixed in a service release at some point. I, of course, am testing using the latest service release for 12.1.
So you probably just need to get the latest service release in order for this to work.
How to get the latest service release - Windows Forms - Service Releases