var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
//alert("goDetail: " + dataItem.id);
$('#itemId').val(dataItem.id);
}
...
0
Accepted
Nikolay
Telerik team
answered on 31 Mar 2020, 01:40 PM
Hi Joel,
The click and double click events can be captured with the jQuery .click() and .dblclick() events respectively and instance of the row can be obtained via the dataItem method of the TreeList:
$("#treeview").on("dblclick", function(e){
var tree = $("#treeview").data("kendoTreeView");
var item = tree.dataItem($(e.target).closest("li"));
});
This could be examined live in the following Dojo demo. Please note that it uses jQuery TreeList implementation, however, the above is valid for ASP.NET Core TreeLists.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.