Hi All,
We're using telerik kendo treelist for the application. we need functionality like if we click on Copy data button then it will clone the selected row along with data. We've tried to find copy functionality but we're not able to do it. so we have add custom button ("Copy Data").
Please let us know if there is any other way to achieve this functionality.
adding button "Copy Data" in toolbar:
.Toolbar(tb =>
{
tb.Custom().Name("Copy").Text("Copy Data");
})
"Copy Data" button click event:
$('.k-button-text').click(function () {
alert('clicked');
debugger
var treeList = $("#TeamTreeList").data("kendoTreeList");
var row = treeList.select();
if (row.length > 0) {
var data = treeList.dataItem(row);
console.log(data.RoleName);
}
});