Discuss anything related to web development but no technical support questions


Post by naveen »

Hi
I am using predecessorcolumn as a column in ganttchart.
I am disabling the editing.
But after deleting the tasks, the predecessor value of the below column not getting updated.
 xtype       : "predecessorcolumn",
                      text        : "Predecessors",
                      useSequenceNumber : true,
                      width       : 75,
                      editor: {
                         hidden:true,
                      },
I tried readOnly, but didnt worked

Thank you,

Post by Maxim Gorkovsky »

Hello.
I suggest you to use beforeedit event:
gantt.on('beforeedit', function (editor, context) { 
  if ( context.column.xtype === 'predecessorcolumn') { return false;}
});
Or you can provide editor config:
editor : { readOnly : true }

Post by naveen »

Thank you very much.
Its helps me lottt

Post Reply