Appointments CollectionChanged fires unexpectedly !!

2 posts, 0 answers
  1. Xiao
    Xiao avatar
    9 posts
    Member since:
    Jul 2011

    Posted 06 Oct 2011 Link to this post

    Hi all , i am handling  CollectionChanged on Appointments ObservableCollection  on my ViewModel to catch newly added appointments and any changes in appointments in the UI.
    but i found that CollectionChanged event fires just when user double click the ScheduleView and Add new appointment window appears (but before entering any info.) so in CollectionChanged handler I got empty appointment object .

    any ideas please ??
  2. Rosi
    Rosi avatar
    2529 posts

    Posted 07 Oct 2011 Link to this post

    Hi Xiao,

    RadScheduleView uses CollectionView to manage the data operations -adding ,editing, deleting of appointments.When a dialog is opened a new appointment is created (this is needed for displaying the corresponding properties of appointment in the dialog) via the CreateNew() method of collection view. That is why the collection is updated and CollectionChanged events fires. This is the default behavior of CollectionView. If the creating an appointment via dialog is canceled the newly created appointment will be removed from the collection.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top