Scheduler.NET PDF Export

How do I call the scheduler’s PDF Export (online method) via Razor view?

I have the following on top of my Grid.cshtml page but when I

I get the following error in console:

Uncaught TypeError: scheduler.exportToPDF is not a function

IN my calendar controller:


and Grid.cshtml also has the script reference to :

What am I doing wrong?

make sure to add PDF extension to the scheduler instance, then the required definitions will be loaded:

var sched = new DHXScheduler(); sched.Extensions.Add(SchedulerExtensions.Extension.PDF); … age_export