Expand on clicking of node text

3 posts, 0 answers
  1. Tomica
    Tomica avatar
    147 posts
    Member since:
    Apr 2008

    Posted 20 May 2011 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 May 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tomica
    Tomica avatar
    147 posts
    Member since:
    Apr 2008

    Posted 23 May 2011 Link to this post

    Thank you, this works great.
Back to Top