When I use a custom template for events, events in the +n more popup are blank. Is there a separate template for the +n more popup, or is this a bug? The following shows the issue (these images are also attached to this post):
The following code reproduces the issue:
@using Syncfusion.EJ2.Blazor.Schedule
<EjsSchedule TValue="AppointmentData"
ModelType="@appointmentModel"
Height="100%"
Width="100%"
CurrentView="View.Month"
SelectedDate="@(new DateTime(2019,12,1))">
<ScheduleViews>
<ScheduleView Option="View.Month"></ScheduleView>
</ScheduleViews>
<ScheduleEventSettings DataSource="DataSource">
<Template>
@{
var appointment = (context as AppointmentData);
<div class="subject">
@(appointment.Subject + " - " + appointment.Location)
</div>
}
</Template>
</ScheduleEventSettings>
</EjsSchedule>
@code{
AppointmentData appointmentModel = new AppointmentData();
List<AppointmentData> DataSource = new List<AppointmentData>
{
new AppointmentData{ Id = 1, Subject = "Meeting1", Location="Charleston, SC", StartTime = new DateTime(2019, 12, 11).Date , EndTime = new DateTime(2019, 12, 18).Date.AddMinutes(1)},
new AppointmentData{ Id = 2, Subject = "Meeting2", Location="San Diego, CA", StartTime = new DateTime(2019, 12, 11).Date , EndTime = new DateTime(2019, 12, 18).Date.AddMinutes(1)},
new AppointmentData{ Id = 2, Subject = "Meeting3", Location="Somewhere, VA", StartTime = new DateTime(2019, 12, 11).Date , EndTime = new DateTime(2019, 12, 18).Date.AddMinutes(1)}
};
public class AppointmentData
{
public int Id { get; set; }
public string Subject { get; set; }
public string Location { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string Description { get; set; }
public bool IsAllDay { get; set; }
public string RecurrenceRule { get; set; }
public string RecurrenceException { get; set; }
public Nullable<int> RecurrenceID { get; set; }
}
}
Attachment:
EventTemplate_40ad498.zip