I am trying to use column button (command button) in tree grid.
As to the example below, how should I use "command button"?
Thanks in advance.
$(function () {
$("#treegrid").ejTreeGrid({
// sorting
allowSorting: true,
allowMultiSorting: true,
// edit settings
editSettings: {
allowEditing: true,
editMode: "cellEditing",
},
dataSource: dataSource,
childMapping: "subtasks",
columns: [
{
headerText: "Details", commands : [
{ type: "details", buttonOptions: { text: "Details"} },
]
},
{ field: "taskName", headerText: "Task Name" },
{ field: "startDate", headerText: "Start date"},
{ field: "endDate", headerText: "End Date" },
{ field: "duration", headerText: "Duration"},
{ field: "progress", headerText: "Progress"}
]
});
});
Attachment:
TreeGridTest_a1e6b97f.zip