AJAX Calendar/Scheduling Controls
I am trying to get the clientState to work but i am getting the follow-up error: base {System.SystemException} = {"The JsonData instance has to be initialized first"}
code: string userId = (string)DayPilotCalendar1.ClientState["userId"];
javascript: dpc1.clientState = {'userId': 1};
Any ideas ?
The clientState value is only synchronized during calls that are coming from the DayPilot control (either PostBack or CallBack).
That means it's not available on the server side when you push a Button or fire another event.
Is that your case?
I am using the dpc1.commandCallBack function.
I've tested it with the latest release (6.5) and it seems to work fine.
What's the DayPilot version you are using?
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java