Appointment Visibility control

2 posts, 0 answers
  1. Terry Newton
    Terry Newton avatar
    21 posts
    Member since:
    Oct 2009

    Posted 29 Oct 2009 Link to this post

    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.

  2. Teodor
    Teodor avatar
    501 posts

    Posted 03 Nov 2009 Link to this post

    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,
    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.
Back to Top