Hi Fabrizio,
Greetings from Syncfusion support.
We have checked your reported issue and you can access resource details while double click a cell by following below steps
Step1: Get the GroupIndex of cell using CellDoubleClick event
Step 2: Pass the GroupIndex as a parameter to the GetResourceByIndex public method which reruns the resource details
Step 3: Deserialize the resource object to get result and refer the below code for that
|
<SfSchedule @ref="ScheduleObj" TValue="AppointmentData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2020, 1, 8))" CurrentView="View.TimelineWeek">
...
<ScheduleEvents TValue="AppointmentData" OnCellDoubleClick="CellDoubleClick"></ScheduleEvents>
</SfSchedule>
</div>
</div>
@code{
public async void CellDoubleClick(CellClickEventArgs args)
{
var SelectedResource = await ScheduleObj.GetResourcesByIndex(args.GroupIndex); // To get the resource details
var groupData = JsonConvert.DeserializeObject<AppointmentData>(JsonConvert.SerializeObject(SelectedResource.GroupData));
}
...
} |
Also, we have prepared a sample based on your requirement which can be get by the below link.
Please let us know, if you need further assistance.
Regards
Alagumeena.K