Print Page | Close Window

Saving State

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=3077
Printed Date: 05 May 2024 at 12:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Saving State
Posted By: Simon HB9DRV
Subject: Saving State
Date Posted: 21 October 2005 at 11:30am
Me again,

I don't see how I save the state of the calendar - i.e. the current configuration such as view, days of working week etc.

Obviously I can do this myself by saving all the options, just wondering if you have anything built-in.

Have a nice quiet weekend,



-------------
Simon HB9DRV



Replies:
Posted By: Simon HB9DRV
Date Posted: 22 October 2005 at 12:27pm
Found it myself

-------------
Simon HB9DRV


Posted By: sserge
Date Posted: 23 October 2005 at 12:40pm
Ok, just to help others:

There are 2 levels for the calendar settings.
    1 - CalendarOptions (see corresponding object and property in the data provider)
    2 - Other settings (like active view type and first visible day, enable scrolling, ...)

CalendarOptions loaded and aplied when Open method of a data provider is called and stored when Save method is called. This works for xml/binary and DB data providers.

If you'd like to save options yourself in other place - keep in mind that you have to apply them to calendar after Open method of data provider is called.

Other settings (like active view type and first visible day) are not stored automatically and you have to save/restore them yourself.

After changing options please call Populate() and RedrawControl() methods to update control.

--
HTH,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net