Hi Eliseo,
Thanks for contacting Syncfusion support.
Yes, you can restrict the multiple resources by doing the customization in actionBegin and actionComplete event of Gantt as like below code. We have modified the sample such that only single resources are selected.
|
public actionBegin(args: any) {
if (args.requestType == "beforeOpenEditDialog" || args.requestType == "beforeOpenAddDialog") {
args.Resources.columns.splice(0, 1);
}
}
public actionComplete(args: any) {
if (
args.requestType == "openAddDialog" ||
args.requestType == "openEditDialog"
) {
var tabObj = (document.getElementById("resource_Tab") as any).ej2_instances[0];
tabObj.selected = function(args) {
if (args.selectedItem.innerText == "RESOURCES") {
var resourceTab = (document.getElementById(
"resourceResourcesTabContainer_gridcontrol"
) as any).ej2_instances[0];
resourceTab.selectionSettings = {
checkboxOnly: false,
type: "Single",
persistSelection: false
};
}
};
}
}
|
Please check with shared sample and let us know, if you need further assistance.
Regards
Alagumeena.K