Mark the control as ReadOnly
To disable all kinds of editing by the end-user, simply set the GanttControl.IsReadOnly property to true and set iseditable column property to false.
|
var ganttControl = $gantt_container.data("GanttControl"); $gantt_container.GanttControl('option', 'IsReadOnly', true); //To make the Column not editable in ganttTable. var columns = [ { field: "Activity_M().ID_M()", title: "ID", width: 25, iseditable: false }, { field: "Activity_M().ActivityName_M()", title: "Activity Name", width: 200, iseditable: false, editor: RadiantQ.Default.Template.ProjectGanttExpandableTextboxEditor(), template: RadiantQ.Default.Template.ProjectGanttExpandableTextBlockTemplate() }, { field: "Activity_M().StartTime_M()", title: "StartTime", width: 150, iseditable: false, format: "MM/dd/yy", editor: "<input data-bind='ActivityTimeBinder:Activity_M().StartTime_M' />" }, { field: "Activity_M().EndTime_M()", title: "EndTime", width: 150, iseditable: false, format: "MM/dd/yy", editor: "<input data-bind='value:Activity_M().EndTime_M' data-getvalueName='getDate' data-setvaluename='setDate' data-valueUpdate='onBlur' data-role=\"DateTimePicker\" />" }, { field: "Activity_M().Effort_M()", title: "Effort", iseditable: false, format: "" /*to call the .toString()*/, width: 100, editor: "<input data-bind='value:Activity_M().Effort_M' data-role=\"DurationPicker\" />" }, { field: "Activity_M().ProgressPercent_M()", title: "ProgressPercent", width: 100, iseditable: false, editor: "<input data-bind='value:Activity_M().ProgressPercent_M' data-role=\"spinner\" data-options='{\"min\":0, \"max\": 100}' />" }, { field: "Activity_M().Assignments_M()", title: "Resource", iseditable: false, editor: "<input data-bind='ResourcePickerBinder:Activity_M().Assignments_M' />", template: '<div> ${ RadiantQ.Gantt.ValueConverters.ConverterUtils.GetResourcesText(data.Activity_M().Assignments_M(), false) } </div>', width: 100 }, { field: "Activity.PredecessorIndexString", title: "PredecessorIndex", iseditable: false, template: "<div>${data.PredecessorIndexString || '' }</div>", editor: "<input data-bind='value:PredecessorIndexString'/>", width: 150 }]; |
� RadiantQ 2022. All Rights Reserved.