I am using a dataTreeNode objcet for a hierarchy of nodes on a web page. The entire div on the web page however is unelectable.
How can I make the entire object selectable? (.Selected = True doesn't work either)
Hello Matthew,
I’ve investigated your request and was able to determine that in order to achieve the desired behavior, the “SelectionType” property could be used and should be set to either “Single” or “Multiple”. The default, “SelectionType” property is set to “None”.
Please test it on your side and let me know if you need any further information regarding this matter.
Regards, Aleksandar Atanasov,
Infragistics.
I have investigated further and found that the DataTreeNode class does not have a 'SelectionType' property, only 'Selected' property which when set to true is supposed to automatically select the node. However even when that is set to true, the node is not selected.
I am glad to hear that the suggestions were helpful, and you were able to achieve your requirement.
Thank you for using Infragistics components.
Thanks a lot it worked!
I’m glad that my suggestions were helpful. Additionally, regarding your last question, setting a new text value of the node when the user selects it can be achieved once again by binding a function to the NodeClick or SelectionChanged events. In this function, the set_text method could be used:
ui.get_selectedNodes()[0].set_text("new text value")
Just figured out how to copy the text. Thanks for the Help!One final question, is it possible to change the text of the node from javascript so that when the user clicks the node, the text changes.
Thanks!
The problem is that I am not able to select the node. Hence is it possible to use these clientevent to copy text to clipboard when clicking the node?