Hi
I am trying to execute a dblclick event on a treenode.
For this I used the Nodeclicked event and want to catch the number of clicks with args.event.tapCount.
This works on the nodeExpanding event but not here.
Is there a way to get the dblclick event on the node.
Thanks for the help
<ejs-treeview id="treedata" animation="anim" cssClass="custom" expandOn="None" nodeClicked="nodeClick" nodeExpanding="nodeExpanding" EnablePersistence="true">
<e-treeview-fields id="CategoryID" datasource="TreeDataSource" parentId="ParentID" text="Name" hasChildren="hasChild" expanded="true"></e-treeview-fields>
</ejs-treeview>
<script>
function nodeClick(args) {
var treeObj = document.getElementById('treedata').ej2_instances[0];
var targetNodeId = treeObj.selectedNodes[0];
// Does not work
if(args.event.tapCount==2 ){
// do something
}
}
function nodeExpanding(args) {
// Works
if(args.event.tapCount==2 ){
args.cancel=true;
}
}
</script>