Declined
Last Updated: 27 Feb 2015 21:27 by ADMIN
Kyle
Created on: 25 Nov 2011 08:59
Category: Kendo UI for jQuery
Type: Feature Request
3
implement a double-click event handler
It would be nice in the grid or treeview modules to have a "DblClick" event handler. 
1 comment
Imported User
Posted on: 29 May 2013 13:12
In case anyone is interested:

I did the following:

        $("#fileTreeContainer").dblclick( function () { 

        	var treeView = $("#fileTreeContainer").data("kendoTreeView");	
        	var selectedNode = treeView.select(),
        	dataItem = treeView.dataItem(selectedNode);

        	if (dataItem.type == 'file'){
            	    // call your action to download a file or whatever
        	}     	 		
        });

dataItem.type is a property that i assign when building the JSON structure. This tells me if the selected item is a directory or a file. I need this because i use the doubleclick to download a file and obviously this is only for files, not for directories.