Board Logo

Selecting when opening
ceg - 11/16/2004 at 01:15 PM

Hi all,

I have noticed that the default behavior for opening a node is different when a user clicks the +/- icon versus double clicking the node. When clicking the +/- icon, the node is not selected. However, when a user double clicks the node thenode becomes selected.

The desired behavior in my case is that the nodes not be selected when the user is opening a node. This is regardless of whether the user has clicked the +- icon or double clicked the node.

The one solution I have tried is to override the default event handlers for opening a node (by returning false in my event handler). THe problem with this is that I still need to have the node opened and calling recursively triggers my event handler resulting in stack overflows.

Has anybody dealt with this?


rayge - 12/1/2004 at 12:29 AM

actually im having the SAME issue.
And i cant seem to figure out why

If i use the item scope methos i dont get the error But I dont get it expanding for any reason after that as well.


rock - 12/15/2004 at 12:55 PM

Actually double-click always occurs after click event. On click select action is performed, on double-click - toggle.
function onItemOpenHandler(o_item){; // deselects node
return true; //default open routine

Back to forum: