To understand the implementation of Recurring Events functionality of DHTMLX Calendar, we have downloaded the DHTMLX MVC Source Code. We ran and edit the existing recurring event details. When Click Save button in Event Window, the we got an error i.e. Access is denied : ‘Hyper.ComponentModel.ChainingPropertyDescriptor’ in save method. Coukld you please suggest how should we proceed for futher on this.
After that, we haved taken MVC3.0 sample and change the connection string by pointing to our database. When run the Calendar, data(Events) is loading on calendar properly but when we edit and click on save of any event then we are getting error i.e. Access is denied : ‘Hyper.ComponentModel.ChainingPropertyDescriptor’ . Could you please help us to solve this issue.
Hello,
we need more details to reproduce the issue. Do you use the same model as in the sample, or yours has other set of properties?
Looks like saving fails on one of this lines
var changedEvent = (Event)DHXEventsHelper.Bind(typeof(Event), actionValues);
or
DHXEventsHelper.Update(eventToUpdate, changedEvent, new List<string>() { "id" });
it would be helpful if you could give us some more information about your model, and where exactly method fails.
as temporary workaround you may use built-in mvc model binder, instead of DHXEventsHelper, here is a code sample scheduler-net.com/docs/managing_ … ode_sample
note that by default, mvc model binder will use local date format to parse dates, so you might need to update schedulers date format to match the local format, or add custom model binder for dates, or set system culture in web.config
Correct! We are also getting the error at the same point. As you know, We are trying build sample MVC application using Scheduler. As per your suggestion, we changed to mvc model binder and is working fine.
We would like to know, will it be possible to load event data dynamically. The resaon for asking this query is, when we started using the calendar and data load will increase gradually. After a year, we have plenty of events records in the database and when we load all these event one strecth to the calendar then it will become a peformance issue. Curious to know, how should we overcome this. It would be great of help if you share any sample or document in this regard.
In the analysis, we are trying the develop the sample with Razor engine and able to load the calendar. We have added the Export to PDF input button as shown below:
<input type=“button” name=“ExportPDFButton” value="Export to PDF " onclick = "@Model.ToPDF("http://dhtmlxscheduler.appspot.com/export/pdf")" />
But when we run the application and click on export to pdf button then we got error as JScript run time error: Object doesn’t support this property or method as shown in attached document. We did further analysis and found that the Url is concated with “'” as shown below :
onclick = “scheduler.toPDF('http://dhtmlxscheduler.appspot.com/export/pdf');”
This might not allowing to export the data to pdf.
Could you please help us to how should we proceed further on this.