I added a FolderContextClickHandler to a TreeGrid to show a context menu that has menu items to select/deselect children nodes. I also call event.cancel() in a CellContextClickHandler to disable the default browser context menu.
I then enable and disable certain nodes based some business logic. This is done so users can only click on the checkbox of certain nodes.
Now when I right-click on enabled nodes, my context menu appears correctly. However, on disabled nodes, the default browser menu (I'm using Firefox 7) appears.
I tried playing with different context click and mouse up/down handlers and I figured out that adding a ShowContextMenuHandler worked. However, the event in that handler does not have access to the record under the cursor. Is there a way to get the record so I can select/deselect its children? Or is there a different way to accomplish what I'm trying to do (e.g., add a different handler)?
Using SmartGWT 2.5p.
I then enable and disable certain nodes based some business logic. This is done so users can only click on the checkbox of certain nodes.
Now when I right-click on enabled nodes, my context menu appears correctly. However, on disabled nodes, the default browser menu (I'm using Firefox 7) appears.
I tried playing with different context click and mouse up/down handlers and I figured out that adding a ShowContextMenuHandler worked. However, the event in that handler does not have access to the record under the cursor. Is there a way to get the record so I can select/deselect its children? Or is there a different way to accomplish what I'm trying to do (e.g., add a different handler)?
Using SmartGWT 2.5p.
Comment