This is a migrated thread and some comments may be shown as answers.

Appointment Visibility control

1 Answer 40 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Terry Newton
Top achievements
Rank 1
Terry Newton asked on 29 Oct 2009, 05:30 PM
Is it possible to control appointment visibility within the calendar control?

For example we would like to toggle on and off the display of certain appointments so that all the appointments can be in the display, but as we change mode only some of the appointments show.

We were hoping to be able to loop through the collection and set a setting rather than redo the collection so that we can maintain a single copy of the appointments list and not need to do multiple list management.

We have extended the appointment class to contain additional information we could filter on, but we have not found a way to tell the controls we have not overridden how to not display an item.

Thanks for any advise.

Terry

1 Answer, 1 is accepted

Sort by
0
Teodor
Telerik team
answered on 03 Nov 2009, 02:45 PM
Hi Terry Newton,

Thank you for contacting us!

You have begun in a right direction extending the Appointment class with your own property telling whether it is visible/invisible. However, to tell the AppointmentItem to depend on it, you will need to bind its Visibility property to the new property of your custom appointment via a converter. This, unfortunately, is only achievable through creating a custom theme (here is some info regarding WPF - it is the same as Silverlight).

Another way to accomplish your goal, as you have already spotted, and as I think better, is to support two collections of appointments. One will contain all of your appointments, and the other - the appointments you need to see in a certain moment. 

Hope this explains the situation. Should you need further help, do not hesitate to contact us. 

Best wishes,
Teodor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Calendar
Asked by
Terry Newton
Top achievements
Rank 1
Answers by
Teodor
Telerik team
Share this question
or