Hi Serwol,
The expand event of the Kendo UI TreeList is triggered only when a row is expanded. If you would like to programmatically expand a row, you would have to do it with the help of the expand() method. Here is a sample click handler:
function customClick(e){
var row = e.target.closest("tr");
$("#treelist").getKendoTreeList().expand(row);
}
And the column declaration:
{ command: [{name: "custom", text: "expand me", click: customClick},"edit", "destroy" ], width: 300 }
Give this suggestion a try and let me know how it works out for you.
Best regards,
Tsvetomir
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.