Hi,
I am facing issue while attaching the click as well as doubleclick event to a dhtmlxFolders component.
If i have attached both the events (onclick as well as ondoubleclick), whenever i try to doubleclick the item, the onclick event gets invoked, but not the ondoubleclick event.
Is this the limitation of dhtmlx component that we cannot attach both the events simultaneously?
Regards,
Vibhav Agrawal
Hello,
such a problem can occur if you place alert() into the onclick event handler - in this case ondblick won’t be called.
I have removed the alert.
But now, whenever i doubleclick on the item, both the events, onclick aswell as ondoubleclick are invoked.
Is there any way to identify if the event is doubleclick or single click so that if its doubelclick, then we dont want to invoke the method for single click.
Thanks,
Vibhav Agrawal
Also, I want that whenever user clicks in the empty area of the foldersView, the selected item gets deselected.
Is there any way to achieve such a functionality?
Thanks,
Vibhav Agrawal
Is there any way to identify if the event is doubleclick or single click so that if its doubelclick
Unfortunately it is problematic. Components depends on browser, and browser in case of doubleclick can send both signals ( single click signal and double click signal some time after that )
If question is still actual - it possible to separate both signal by using custom code called with timeout ( in such case , code for double click may clear timeout for previously received single click call )