I can create events and view the created events in the database.
However, the problem is that the events on the page disappeared after a refresh.
I double-checked with the database and find the events DO exist in the database.
And I believe the XML generated by server-side code is passed in the correct format, but I do not know why the events just do not show up on the web page.
Do you guys have a solution or some suggestions to this?
It just adds random element to the uri, to prevent caching. uid parameter is not processed on server side ( it actually can have different name, there is no restrictions )
I finally figured out that it was the problem of string format of the dates.
The DateTime in C# always create the object with its Locale setting of the machine which the project runs on (instead of the client), for example US-EN will get MM/dd/yyyy and other countries may get dd/MM/yyyy for the DateTime object. If you’re running the project on the very same machine, this may not matter. But if you move the project and develop on another machine, you may need to change the Locale setting on the new machine.
Client side scheduler can’t auto-detect format of xml data, but it possible to change awaited format So if you know the format, which server side generates you can use
scheduler.config.xml_date = “%m/%d/%Y %H:%i”; //or any other format here