Hi, i've a treelist with custom command,
and i'm trying to change the button template with the databound event like the Grid
the visual result it's ok, but the event click doesn't fire, probably because i remove the k-button class.
but if leave the class the button doesn't template.
columns.Add().Command(command =>
{
command.Custom().ClassName("k-grid-EditCustom").Text(" ").Name("EditCustom").Click("editGroup");
command.Custom().ClassName("k-grid-DeleteCustom").Text(" ").Name("DeleteCustom").Click("deleteGroup");
}).Width(150);
function treeGridGroup_DataBound(e) {
e.sender.tbody.find(".k-grid-EditCustom").removeClass("k-button")
e.sender.tbody.find(".k-grid-EditCustom").addClass("btn btn-warning btn-outline fa fa-pencil");
e.sender.tbody.find(".k-grid-DeleteCustom").removeClass("k-button")
e.sender.tbody.find(".k-grid-DeleteCustom").addClass("btn btn-danger btn-outline fa fa-trash-o m-l-5");
}