RadScheduler Weekview header questions

1 Answer 22 Views
Scheduler
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 29 Oct 2024, 11:53 AM

Two issues on the RadScheduler Weekview column header:

  1. How to disable the clickable link in the column header?
  2. We want to only show dayname as header eg. "Sunday Monday Tuesday". What format string to use herefore?

Thanks,

Marc

 

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 31 Oct 2024, 12:19 PM

Hello Marc,

You can disable the clickable link in the OnClientNavigationCommand event,  by checking if the command being executed is the SwitchToSelectedDay Scheduler command:

function onClientNavigationCommand(sender, args) {
    let command = args.get_command();
    let navigationCommands = Telerik.Web.UI.SchedulerNavigationCommand;

    if (command === navigationCommands.SwitchToSelectedDay) {
        args.set_cancel(true);
    }
}

To make the days show their  name,  you can use the ColumnHeaderDateFormat  property of the WeekView:

<WeekView ColumnHeaderDateFormat="dddd" />

Regards,
Vasko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
Scheduler
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vasko
Telerik team
Share this question
or