Hi dniezgoda,
Provide the unique cell class name to the column that you want to edit programmatically,
{
field: "Activity_M().ActivityName_M()",
title: "Activity Name",
width: 150,
cellClass: "nameCol",
editor: RadiantQ.Default.Template.ProjectGanttExpandableTextboxEditor(),
template: RadiantQ.Default.Template.ProjectGanttExpandableTextBlockTemplate()
}
And then get that specific column from the newly added activity view to make the cell into edit mode.
$("#addRow").click(function () {
var newTask = getNewTask();
ganttControl.AddNewItem(newTask);
setTimeout(function () {
var actView = ganttControl.ActivityViews[ganttControl.ActivityViews.length - 1];
ganttControl.$ganttWrapper.data("GanttRowselectable").selectedItems.clear();
// Select the row before start editing
ganttControl.AddSelectedItem(actView);
var $tr = ganttControl.grid.GetRowFromData(actView)
var $td = $("td.nameCol", $tr);
// To edit the cell
ganttControl.grid.editCell($td);
}, 100);
});
Thanks
Raja