|
| 1 | +--- |
| 2 | +title: Agenda |
| 3 | +page_title: Scheduler - Agenda View |
| 4 | +description: Agenda View in the Scheduler for Blazor. |
| 5 | +slug: scheduler-views-agenda |
| 6 | +tags: telerik,blazor,scheduler,view,agenda |
| 7 | +published: True |
| 8 | +position: 6 |
| 9 | +--- |
| 10 | + |
| 11 | +# Agenda View |
| 12 | + |
| 13 | +The Agenda view of the Scheduler for Blazor shows a weekly summary (or a custom period set by the user) in a table format. Also the Agenda view can be configured to display the events that are [grouped by resource]({%slug scheduler-resource-grouping%}) |
| 14 | + |
| 15 | + |
| 16 | +In this article: |
| 17 | + |
| 18 | +* [View Parameters](#view-parameters) |
| 19 | +* [Example](#example) |
| 20 | + |
| 21 | +## View Parameters |
| 22 | + |
| 23 | +The following parameters allow you to configure the agenda view: |
| 24 | + |
| 25 | +@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout) |
| 26 | + |
| 27 | +| Attribute | Type and Default Value | Description | |
| 28 | +| --- | --- | --- | |
| 29 | +| `NumberOfDays` | `int` <br /> (`7 (a week)`) | Represents the number of days shown in the view. | |
| 30 | +| `HideEmptyAgendaDays` | `bool` <br /> (`true`) | Defines whether dates with no appointments are rendered. | |
| 31 | + |
| 32 | +## Example |
| 33 | + |
| 34 | +>caption Declare the Agenda View in the markup |
| 35 | +
|
| 36 | +>tip You can declare other views as well, this example adds only the Agenda view for brevity. |
| 37 | +
|
| 38 | +````CSHTML |
| 39 | +@* Define the agenda view. *@ |
| 40 | +
|
| 41 | +<TelerikScheduler Data="@Appointments" @bind-Date="@StartDate" Width="800px"> |
| 42 | + <SchedulerViews> |
| 43 | + <SchedulerAgendaView HideEmptyAgendaDays="@HideEmptyDays" /> |
| 44 | + </SchedulerViews> |
| 45 | +</TelerikScheduler> |
| 46 | +
|
| 47 | +@code { |
| 48 | + private DateTime StartDate { get; set; } = new DateTime(2024, 10, 22); |
| 49 | +
|
| 50 | + private bool HideEmptyDays { get; set; } |
| 51 | +
|
| 52 | + private List<SchedulerAppointment> Appointments = new List<SchedulerAppointment>() |
| 53 | +{ |
| 54 | + new SchedulerAppointment |
| 55 | + { |
| 56 | + Title = "Team Meeting", |
| 57 | + Description = "Discuss the project progress.", |
| 58 | + Start = new DateTime(2024, 10, 14, 10, 00, 0), |
| 59 | + End = new DateTime(2024, 10, 14, 11, 00, 0) |
| 60 | + }, |
| 61 | + new SchedulerAppointment |
| 62 | + { |
| 63 | + Title = "Doctor Appointment", |
| 64 | + Description = "Routine check-up.", |
| 65 | + Start = new DateTime(2024, 10, 16, 9, 30, 0), |
| 66 | + End = new DateTime(2024, 10, 16, 10, 00, 0) |
| 67 | + }, |
| 68 | + new SchedulerAppointment |
| 69 | + { |
| 70 | + Title = "Client Call", |
| 71 | + Description = "Quarterly review with the client.", |
| 72 | + Start = new DateTime(2024, 10, 22, 14, 00, 0), |
| 73 | + End = new DateTime(2024, 10, 22, 15, 00, 0) |
| 74 | + }, |
| 75 | + new SchedulerAppointment |
| 76 | + { |
| 77 | + Title = "Team Outing", |
| 78 | + Description = "Lunch with the team.", |
| 79 | + Start = new DateTime(2024, 10, 23, 12, 30, 0), |
| 80 | + End = new DateTime(2024, 10, 23, 14, 00, 0) |
| 81 | + }, |
| 82 | + new SchedulerAppointment |
| 83 | + { |
| 84 | + Title = "Webinar", |
| 85 | + Description = "Industry trends and insights.", |
| 86 | + Start = new DateTime(2024, 10, 24, 16, 00, 0), |
| 87 | + End = new DateTime(2024, 10, 24, 17, 30, 0) |
| 88 | + }, |
| 89 | + new SchedulerAppointment |
| 90 | + { |
| 91 | + Title = "Project Deadline", |
| 92 | + Description = "Final submission of deliverables.", |
| 93 | + Start = new DateTime(2024, 10, 29, 9, 00, 0), |
| 94 | + End = new DateTime(2024, 10, 29, 12, 00, 0) |
| 95 | + } |
| 96 | +}; |
| 97 | +
|
| 98 | + public class SchedulerAppointment |
| 99 | + { |
| 100 | + public string Title { get; set; } |
| 101 | + public string Description { get; set; } |
| 102 | + public DateTime Start { get; set; } |
| 103 | + public DateTime End { get; set; } |
| 104 | + public bool IsAllDay { get; set; } |
| 105 | + } |
| 106 | +} |
| 107 | +```` |
| 108 | + |
| 109 | +## See Also |
| 110 | + |
| 111 | +* [Views]({%slug scheduler-views-overview%}) |
| 112 | +* [Navigation]({%slug scheduler-navigation%}) |
| 113 | +* [Live Demo: Scheduler Agenda View](https://demos.telerik.com/blazor-ui/scheduler/agenda-view) |
| 114 | +* [Resource Grouping Example]({%slug scheduler-resource-grouping%}#resource-grouping-by-one-resource) |
| 115 | + |
0 commit comments