This is a migrated thread and some comments may be shown as answers.
Expand on clicking of node text
2 Answers 21 Views
This is a migrated thread and some comments may be shown as answers.
Tomica
Top achievements
Rank 2
Tomica asked on 21 May 2011, 01:12 AM
As far as I can tell, the default behavior is to require clicking on the expand/contract area, the one with the plus or triangle icon. I think this is called the "node image".

I see in the online documentation for RAD Ajax that the topics will expand even if you click on the node text. (actual behavior, not covered in the Help topic itself)

Is there a property of the control that enables this behavior? The reason I ask is that many users instinctively click on the text, and of course the icons are quite small as a mouse target.

I have played with Ajax code behind expansion on clicking of the node, but this seems like overkill.

And I don't know enough about client-side code to script that behavior.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 23 May 2011, 07:06 AM
Hello Tomica,

You can achieve this by Subscribe to the OnClientNodeClicked (AfterClientClick for the "classic" version) and define its event handler.

Check out the KB article for more on this.
How-to Expand and Collapse nodes by clicking on node's text .

Thanks,
Shinu.
0
Tomica
Top achievements
Rank 2
answered on 23 May 2011, 04:10 PM
Thank you, this works great.
Asked by
Tomica
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Tomica
Top achievements
Rank 2
Share this question
or