Saving State |
Post Reply |
Author | |
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
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
|
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
Found it myself
|
|
Simon HB9DRV
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |