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:

scheduler.Extensions.Add(SchedulerExtensions.Extension.PDF);

and Grid.cshtml also has the script reference to :

What am I doing wrong?

Hi,
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);
scheduler-net.com/docs/data-expo … age_export