$("#TreeGridContainer").ejTreeGrid({
columnResizeSettings: {
columnResizeMode: ej.TreeGrid.ColumnResizeMode.Normal
},
columns: [
{ field: "taskID", headerText: "Task Id", editType: "numericedit", width: "45" },
{ field: "taskName", headerText: "Task Name", editType: "stringedit", width: "200" },
],
create: function (args) {
var $cols1 = this.getContentTable().children("colgroup").find("col"),
$cols2 = this.getHeaderTable().children("colgroup").find("col");
$($cols1[2]).removeAttr("style");
$($cols1[3]).removeAttr("style");
$($cols1[4]).removeAttr("style");
$($cols2[2]).removeAttr("style");
$($cols2[3]).removeAttr("style");
$($cols2[4]).removeAttr("style");
},
}) |