Page 1 of 1

[ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Fri Jun 18, 2021 7:30 am
by Vinodh Kumar

Hi Team,

I have one column with drop-down values how can I configure that drop-down in Gantt view.

Ex:
Status Column: Dropdown with ["Not Started", "Started", "Completed"];

And those drop-down values are different for each project how can I make the dynamic dropdown list?


Re: [ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Fri Jun 18, 2021 7:57 am
by mats

Re: [ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Fri Jun 18, 2021 9:35 am
by Vinodh Kumar

But, how can we make those dropdown items should be dynamic?


Re: [ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Fri Jun 18, 2021 9:44 am
by mats

I wrote you, you listen to the event triggered when editing starts and replace items in the combo as per your needs.


Re: [ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Mon Jun 21, 2021 1:51 pm
by Vinodh Kumar

Hi Mats, how to disable one option in the combo.

Example:

["Not Started", "Started", "Completed"] once the user selected started then we need to disable the Not Started option.


Re: [ANGULAR] How to add custom dropdown for columns in bryntum Gantt

Posted: Mon Jun 21, 2021 3:15 pm
by saki

Could you simply filter the combo store or to not add the invalid option at all in your https://bryntum.com/docs/gantt/#Grid/feature/CellEdit#event-beforeCellEditStart listener?