Using MonthAgenda view:
<ScheduleGroup Resources="@GroupData" EnableCompactView="false"></ScheduleGroup>
<ScheduleResources>
<ScheduleResource TItem="AirlinesData" TValue="int[]" DataSource="@ResourceData" Field="AirlineId" Title="Airline Name" Name="Airlines" TextField="AirlineName" IdField="AirlineId" ColorField="AirlineColor" AllowMultiple="true"></ScheduleResource>
</ScheduleResources>
I want to remove and put the resource grouping of the data.
If the list of appointments has data, and the list of resources (ResourceData) has data, it works fine:
If the list of appointments has data, and the list of resources (ResourceData) has no data, it does not work:
With the day and week views it works in both cases.
|
<SfSchedule TValue="AppointmentData" Width="100%" Height="650px" @bind-CurrentView="CurrentView" @bind-SelectedDate="@CurrentDate">
@if (ResourceData != null) { <ScheduleGroup EnableCompactView="false" Resources="@groupData"></ScheduleGroup> <ScheduleResources> <ScheduleResource TItem="AirlinesData" TValue="int[]" DataSource="@ResourceData" Field="AirlineId" Title="Airline Name" Name="Airlines" TextField="AirlineName" IdField="AirlineId" ColorField="AirlineColor" AllowMultiple="true"></ScheduleResource> </ScheduleResources> } </SfSchedule> |
I need remove and put the resource grouping of the scheduler, in the example, it does not use the resource grouping. ResourceData is alwais null.
In this example, if you change the version of the control to the latest, don't work and If you don't change it, it works.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScheduleComponent-1231060299
|
public void ChangeResourceGroup()
{ if(Content == "Click to UnGroup") { Resources = null; Content = "Click to Group"; } else { Resources = new string[] { "Owners" }; Content = "Click to UnGroup"; } StateHasChanged(); } |
Now yes, solved. Thank you very much!!
While testing I have detected an error:
Click Agenda:
Click Click to UnGroup
Click Week
Click Group
Click Click to UnGroup....and error:
Hi Gerardo,
Sorry for the inconvenience.
We checked the reported problem and considered this as a defect at our end. The fix for this issue will be included in our weekly patch release which is expected to be rolled in the 2nd week of April.
Regards,
Vengatesh
Hi Gerardo,
Thanks for being patience.
We are glad to announce that our weekly patch release v20.1.48 has been rolled out successfully. In this release, an issue with “Exception is thrown while remove grouping dynamically in vertical views” has been fixed. As a result, we recommend you upgrade to the latest version of our Syncfusion package to avail of those changes.
Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.1.48?type=all#scheduler
Kindly check the reported defect in the latest version and get back to us if you need any further assistance.
Regards,
Vengatesh