Hi Sudhanshu,
Greetings from Syncfusion Support.
We have validated your query that “how to get resource data when clicking on empty cell” at our end and we let you know that the scheduler does not pass the resource data while clicking on the empty cell. So we suggest you please use the popupOpen and popupClose events to get the resource details from the target element like the below code.
onPopupOpen(props) {
if (
props.type === "QuickInfo" &&
props.target.classList.contains("e-work-cells")
) {
var currentResourceIndex = parseInt(
props.target.getAttribute("data-group-index")
);
var drowDownList = new DropDownList({
dataSource: this.categoryData,
fields: { text: "text", value: "id" },
placeholder: "Resource Name",
index: currentResourceIndex
});
drowDownList.appendTo(props.element.querySelector(".resourceName"));
}
}
onPopupClose(args) {
var selectedIndex = args.element.querySelector('.resourceName').ej2_instances[0].value;
var resourceId = this.categoryData[selectedIndex - 1].id;
args.data.ResourceId = resourceId;
}
For the same, we have prepared the sample which is available in the below link.
Please check the above sample and get back to us for further assistance.
Regards,
Vengatesh