Post by manou »

Hi,
How can I change the date input format in task list to be able to write 09/09/2022 instead of "09 sept. 2023"
(see attachment)
it takes a lot of time to select a date using the widget.

Attachments
Annotation 2023-08-25 114430.png
Annotation 2023-08-25 114430.png (26.83 KiB) Viewed 662 times

Post by Terence »

You can override the column settings in the Gantt configuration object (-> Gantt View Pro settings panel).

This is the current config for the column

{
	columns                 : [
	        { type: "wbs", persist: true, id: 'br_column_1' },
	        { type: "name", width: 250, id: 'br_column_2' },
	        { type: "startdate", id: 'br_column_3', format: 'MM/DD/YYYY' },
	        { type: "duration", id: 'br_column_4_1' },
	        {
	            type        : "resourceassignment",
	            width       : 120,
	            showAvatars : false,
	            id: 'br_column_5'
	        },
	        { type: "percentdone", showCircle: true, width: 70, id: 'br_column_6' },
	        {
	            type  : "predecessor",
	            width : 112,
	            id: 'br_column_7'
	        },
	        {
	            type  : "successor",
	            width : 112,
	            id: 'br_column_8'
	        },
	        {
	            text: 'Type',
	            field: 'stageId',
	            editor: {
	                type: 'combo',
	                valueField: 'id',
	                displayField: 'name'
	            },
	            renderer: function ({ value, record, grid }) {
	                const project = grid.project.projects?.getById(record.project_id);
	                if (project) {
	                    return project.taskTypes.getById(value)?.name;
	                }
	            },
	            id: 'br_column_14'
	        },
	        { type: "schedulingmodecolumn", id: 'br_column_9' },
	        { type: "calendar", id: 'br_column_10' },
	        { type: "constrainttype", id: 'br_column_11' },
	        { type: "constraintdate", id: 'br_column_12' },
	        { type: "addnew", id: 'br_column_13' }
	    ]
		}

And set the format on the startdate column:
https://bryntum.com/products/gantt/docs/api/Gantt/column/StartDateColumn#config-format


Post by manou »

It's working thanks


Post Reply