Scheduler MultiDayView start day #1643

Closed
opened 2026-01-29 17:56:38 +00:00 by claunia · 2 comments
Owner

Originally created by @cervinkamichal0 on GitHub (Feb 27, 2025).

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

I would like to display only work days in the Scheduler. I planned on using the MultiDayView, but it seems it always starts with the current day. Would it be possible to add option to set the starting day for the MultiDayView?

Originally created by @cervinkamichal0 on GitHub (Feb 27, 2025). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. --> **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. I would like to display only work days in the Scheduler. I planned on using the MultiDayView, but it seems it always starts with the current day. Would it be possible to add option to set the starting day for the MultiDayView?
Author
Owner

@Anspitzen commented on GitHub (Feb 28, 2025):

That function is already implemented I think.
You can set the starting date for the Scheduler with the Date-Parameter.
That will render the multiday view (or the Day View) from that date and change with navigation from there. That Date Parameter is set to Today by default, thats why the view starts with current day when not overwritten. You are probably thinking about something like this?

<RadzenScheduler  TItem="Appointment" Data="@appointments" StartProperty="Start" EndProperty="End" TextProperty="Text"
Date="@nextMonday" >
    <RadzenMultiDayView NumberOfDays="5" AdvanceDays="7" />
</RadzenScheduler>

@code{
  DateTime nextMonday = DateTime.Today.AddDays(((int) DayOfWeek.Monday - (int) DateTime.Today.DayOfWeek + 7) % 7);
}
@Anspitzen commented on GitHub (Feb 28, 2025): That function is already implemented I think. You can set the starting date for the Scheduler with the Date-Parameter. That will render the multiday view (or the Day View) from that date and change with navigation from there. That Date Parameter is set to Today by default, thats why the view starts with current day when not overwritten. You are probably thinking about something like this? ``` <RadzenScheduler TItem="Appointment" Data="@appointments" StartProperty="Start" EndProperty="End" TextProperty="Text" Date="@nextMonday" > <RadzenMultiDayView NumberOfDays="5" AdvanceDays="7" /> </RadzenScheduler> @code{ DateTime nextMonday = DateTime.Today.AddDays(((int) DayOfWeek.Monday - (int) DateTime.Today.DayOfWeek + 7) % 7); } ```
Author
Owner

@akorchev commented on GitHub (Mar 1, 2025):

@Anspitzen suggests a viable solution.

@akorchev commented on GitHub (Mar 1, 2025): @Anspitzen suggests a viable solution.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1643