Hi Matteomessmer,
To Hide
ResourceId column from Add and edit dialog, you can use the actionBegin event
with a requestType of beforeOpenEditDialog
or
beforeOpenAddDialog. Inside this event, we need to set the visible
property of the ResourceId column as false. For your reference, a sample
and code snippets are attached. Check the sample and documentation links below
for more details.
Code Snippets:
[App.tsx]
const
actionBegin = (args: any) => {
if (args.requestType ==
'beforeOpenEditDialog' || args.requestType == 'beforeOpenAddDialog') {
args.Resources.columns[1].visible
= false;
}
};
//…
<GanttComponent
ref={(gantt) => (ganttInst = gantt)}
actionBegin={actionBegin}>
|
Sample: https://stackblitz.com/edit/react-ts-8dbdpq?file=data.js,App.tsx
UG Documentation: https://ej2.syncfusion.com/react/documentation/api/gantt#actionbegin
Regards,
Gopinath
M