Agenda doesn't display correct data or multiple groups
Agenda View doesn't display multiple days or groups (or anything for that matter)
My data:
public string[] Resources { get; set; } = { "Owners" };
public List<AppointmentData> DataSource = new List<AppointmentData>
{
new AppointmentData { Id = 1, Subject = "Meeting", StartTime = new DateTime(2020, 12, 03, 10, 30, 0) , EndTime = new DateTime(2020, 12, 03, 12, 30, 0), OwnerId = 1},
new AppointmentData { Id = 2, Subject = "Meeting", StartTime = new DateTime(2020, 12, 03, 12, 00, 0) , EndTime = new DateTime(2020, 12, 03, 15, 0, 0), OwnerId = 1},
new AppointmentData { Id = 3, Subject = "Meeting", StartTime = new DateTime(2020, 12, 04, 9, 30, 0) , EndTime = new DateTime(2020, 12, 04, 11, 0, 0), OwnerId = 3},
new AppointmentData { Id = 4, Subject = "Lecture", StartTime = new DateTime(2020, 12, 04, 12, 00, 0) , EndTime = new DateTime(2020, 12, 04, 15, 0, 0), OwnerId = 4},
new AppointmentData { Id = 5, Subject = "Meeting", StartTime = new DateTime(2020, 12, 05, 9, 30, 0) , EndTime = new DateTime(2020, 12, 05, 11, 0, 0), OwnerId = 1},
new AppointmentData { Id = 6, Subject = "Lecture", StartTime = new DateTime(2020, 12, 05, 12, 00, 0) , EndTime = new DateTime(2020, 12, 05, 15, 0, 0), OwnerId = 3},
new AppointmentData { Id = 7, Subject = "Meeting", StartTime = new DateTime(2020, 12, 03, 7, 30, 0) , EndTime = new DateTime(2020, 12, 03, 08, 30, 0), OwnerId = 2},
new AppointmentData { Id = 8, Subject = "Meeting", StartTime = new DateTime(2020, 12, 03, 12, 00, 0) , EndTime = new DateTime(2020, 12, 03, 15, 0, 0), OwnerId = 4},
new AppointmentData { Id = 9, Subject = "Meeting", StartTime = new DateTime(2020, 12, 04, 7, 30, 0) , EndTime = new DateTime(2020, 12, 04, 8, 30, 0), OwnerId = 6},
new AppointmentData { Id = 10, Subject = "Lecture", StartTime = new DateTime(2020, 12, 04, 12, 00, 0) , EndTime = new DateTime(2020, 12, 04, 15, 0, 0), OwnerId = 5},
new AppointmentData { Id = 11, Subject = "Meeting", StartTime = new DateTime(2020, 12, 05, 9, 30, 0) , EndTime = new DateTime(2020, 12, 05, 11, 0, 0), OwnerId = 6},
new AppointmentData { Id = 12, Subject = "Lecture", StartTime = new DateTime(2020, 12, 05, 12, 00, 0) , EndTime = new DateTime(2020, 12, 05, 15, 0, 0), OwnerId = 2},
};
public List<ResourceData> OwnersData { get; set; } = new List<ResourceData>
{
new ResourceData{ OwnerText = "Track 1", Id = 1, OwnerColor = "#D2D2D6" },
new ResourceData{ OwnerText = "Track 2", Id = 2, OwnerColor = "#D2D2D6" },
new ResourceData{ OwnerText = "Track 3", Id = 3, OwnerColor = "#D2D2D6" },
new ResourceData{ OwnerText = "Track 4", Id = 4, OwnerColor = "#D2D2D6"},
new ResourceData{ OwnerText = "Track 5", Id = 5, OwnerColor = "#D2D2D6"},
new ResourceData{ OwnerText = "Track 6", Id = 6, OwnerColor = "#D2D2D6"}
};
My Setup:
<SfSchedule TValue="AppointmentData" Height="550px" @bind-SelectedDate="@CurrentDate" @bind-CurrentView="@MyView"
AgendaDaysCount="7" HideEmptyAgendaDays="false"
StartHour="08:00" EndHour="18:00">
<ScheduleGroup Resources="@Resources"></ScheduleGroup>
<ScheduleResources>
<ScheduleResource TItem="ResourceData" TValue="int[]" DataSource="@OwnersData" Field="OwnerId" Title="Owner" Name="Owners" TextField="OwnerText" IdField="Id" GroupIDField="OwnerGroupId" ColorField="OwnerColor" AllowMultiple="true"></ScheduleResource>
</ScheduleResources>
<ScheduleEvents TValue="AppointmentData" OnCellClick="OnCellClick"></ScheduleEvents>
<ScheduleEvents TValue="AppointmentData" OnEventClick="OnEventClick"></ScheduleEvents>
<ScheduleEvents TValue="AppointmentData" OnPopupOpen="OnPopupOpen"></ScheduleEvents>
<ScheduleEventSettings DataSource="@DataSource"></ScheduleEventSettings>
<ScheduleViews>
<ScheduleView Option="View.TimelineDay" MaxEventsPerRow="2" FirstDayOfWeek="1"></ScheduleView>
<ScheduleView Option="View.TimelineWeek" MaxEventsPerRow="2" FirstDayOfWeek="1"></ScheduleView>
<ScheduleView Option="View.Agenda"></ScheduleView>
</ScheduleViews>
</SfSchedule>
Am I missing some configuration?
Thanks in advance
SIGN IN To post a reply.
3 Replies
NR
Nevitha Ravi
Syncfusion Team
December 7, 2020 08:50 AM UTC
Hi Luana,
Greetings from Syncfusion Support.
We have checked the reported issue with the shared code snippets and let you know that you haven’t missed anything at your end. Meanwhile, we could replicate the issue “display appointments for multiple days and groups” and confirm this as defect at our end. Also we have already resolved the issue internally along with the below reported issue. So the fix will be included in our upcoming patch release scheduled on tomorrow December 8, 2020. Please be patience until then.
Regards,
Nevitha
LN
Luana Nunes
December 7, 2020 09:27 AM UTC
That's great, thanks for the prompt support, I shall await the patch release.
NR
Nevitha Ravi
Syncfusion Team
December 8, 2020 06:52 AM UTC
Hi Luana,
Thanks for your update.
We are glad to announce that the reported issue “not display appointments of multiple-days or groups” has been resolved in our weekly patch release v18.3.53, so please upgrade to avail the fix.
Regards,
Nevitha
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
LN Luana Nunes
- Dec 4, 2020 11:44 AM UTC
- Dec 8, 2020 06:52 AM UTC