PDA

View Full Version : disable right click



fother
28 Jul 2009, 6:09 AM
its possible disable a right click in a TreePanel?

vinicius.rabelo
29 Jul 2009, 4:41 AM
You can to insert this in your html file:
<bodyonContextMenu="return false">

When you need to use the context menu go to work fine...

micgala
29 Jul 2009, 4:43 AM
This will disable the context menu for everything.

I guess this is not what he wants...

vinicius.rabelo
29 Jul 2009, 4:51 AM
Really this disable the context menu for everything.
But if you only need to use custom context menu this work fine, because you can to use:
treeGrid.setContextMenu(getMenu());
That work correctly