Hello,
I tried to create the randering of Scheduler on my Webform application with this tutorial
scheduler-net.com/docs/common-ap … duler.html
but step 9 is calling an error on line " <%= this.Scheduler.Render()%>" that Scheduler is not exist and I possibly miss some reference. (but i added them)
I know that this is place for MVC topics, but still this should work on Webforms as its written on documentation so I am wondering how to fix this. Hope on some fix answers please.
Regards
Zef
Hi Zef,
the main idea for rendering scheduler.net on a page is that you create an instance of DHXScheduler class, configure it, call the .Render method which will return a string that contains all required HTML/JS/CSS and put that html string somewhere on the page where you want to see a scheduler. That part is common for both WebForms and ASP.NET MVC.
In order to do the latter step, you need to somehow pass either DHXScheduler instance or a generated html to your page.
In that tutorial it was done by adding a .Scheduler property of type DHXScheduler to the page class. During page load event you create a scheduler instance, configure it and put it into .Scheduler property of a page instance.
When page is being rendered to the output and reaches <%= this.Scheduler.Render()%> it access scheduler instance you previously put in page.Scheduler, calls the Render method and puts the result into the page markup.
So, what may have gone wrong here is probably you either did not add a .Scheduler property to the page, or a DHXScheduler instance isn’t assigned to it, or maybe there is a misspell somewhere.