Our state of the art Gantt chart


Post by ggalipeau »

Is there any configuration to hide the Units column on the resourceassignments picker? If not, is there any other way to remove that (i.e.: through listeners)?


Post by mats »

Yes sure, please see docs for ResourceAssignmentColumn which has a AssignmentField as its editor: https://bryntum.com/docs/gantt/#Gantt/column/ResourceAssignmentColumn#config-editor

Using the editor config you can configure the https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentField#config-picker (which is an AssignmentGrid)

And https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentGrid has a https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentGrid#config-unitsColumn config you can use to add:

{ hidden : true }

Post by ggalipeau »

Hi Mats,
I tried the following:

   columns={[
   	{ type : 'resourceassignment', text: 'Owner(s)', width : 120, 
		picker: {
			unitsColumn: {hidden: true }
		}
   	}
   ]}

But, the units column is still showing. Do you see any issues with the code above?


Post by mats »

Yes, you forgot to define this in the 'editor' block:

   columns={[
   	{ type : 'resourceassignment', text: 'Owner(s)', width : 120, 
		editor : {
		    picker: {
		 	unitsColumn: {hidden: true }
		    }
		}
   	}
   ]}

Post Reply