search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Where is the new event details stored?

Asked by Anonymous
6 years ago.

When I am creating a new event through TimeRangeSelected method then where it is stored?
When I am running the code again then that event is shown but I am not getting where it is stored.

Answer posted by Dan Letecky [DayPilot]
6 years ago.

In the ASP.NET version the events are loaded from the DataSource property when you call DataBind().

If you set StoreEventsInViewState to true they will be stored temporarily in the ViewState but it is not recommended. However, this is disabled by default.

You can also use dp.events.add() method on the client side to add a new event. In that case, it is stored temporarily on the client side. You can use the API to notify the server about the new event - see more details in the documentation:

http://doc.daypilot.org/scheduler/client-side-event-api/

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.