Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    NodeClickHandler detecting NodeIcon/FolderIcon clicked?

    Hi Isomorphic,

    Is there a way to detect when the NodeIcon or FolderIcon has been clicked in a TreeGrid?

    I am currently using a NodeClickHandler, however, nothing in there allows me to distinguish if the NodeIcon/FolderIcon was clicked vs. anywhere else.

    I was looking for something like a NodeIconClickedHandler/FolderIconClickedHandler.

    Thanks!

    SmartClient Version: v10.1p_2017-08-10/Pro Deployment (built 2017-08-10)

    #2
    There's treeGrid.isOverOpenArea() - probably what you want, since clicking in the blank space to the left of the node/folder icon also opens or closes a folder.

    Comment


      #3
      Hi Isomorphic,

      Thank you for the idea.

      I had to switch to using the Extra Icon, in combination with the is isOverExtraIcon() method.

      The isOverOpenArea() didn't seem to be true when clicking on the node/folder icon.

      Thank you

      Comment

      Working...
      X