Scheduler programmatically set view (day, week, month)

Hi, is it possible to programmatically set the scheduler view? We use it as read only data display, so from the OnSlotSelect event it would be nice to drill down to the next view i.e. from Month into week and from week into day. I have tried the following however SelectedIndex is internal so this code will not work.

protected async Task OnSlotSelect(SchedulerSlotSelectEventArgs args)
        {
            if ((args.End - args.Start).TotalDays >= 1)
            {
                scheduler.SelectedIndex = 1;
                await scheduler.Reload();
            }
        }

You nee to set the SelectedIndex parameter instead.

<RadzenScheduler SelectedIndex="@selectedIndex" ...>

@code {
protected async Task OnSlotSelect(SchedulerSlotSelectEventArgs args)
        {
            if ((args.End - args.Start).TotalDays >= 1)
            {
                selectedIndex = 1;
                await scheduler.Reload();
            }
        }
}

Thanks Atanas, you guys are so helpfull and quick.

Hi !

Radzen Blazor Scheluler

as in Today I can include:

TodayText="Hoje"

We can also customize:

day, week, month e year

something like: WeekText = "Semana"

thanks

If you change the culture of the scheduler it will use it when formatting dates.

<RadzenScheduler Culture=@(new CultureInfo("es-ES")) ...>