We're using the RadScheduleView control in a calendar application. The application synchronizes the events shown in the RadScheduleView with the events from a given Calendar server.
The problem that we're facing is that the user could be editing an event while the synchronization updates the collection of appointments in the RadScheduleView. In this particular case we can't update the collection using BeginEdit/Commit because we'd lose the edit transcation that the user is currently using in the EditEvent window.
Alternatively, we could update the collection by removing the old appointment and adding the new one, but this causes reordering of the appointments that occur at the same time and loss of selection (e.g if the selected item is the one that we remove and then add).
What is the best way to update the collection of appointments while the window if open, either because the user is creating or editing an event, without loss of selection and/or reordering of the events that occur at the same time?
The problem that we're facing is that the user could be editing an event while the synchronization updates the collection of appointments in the RadScheduleView. In this particular case we can't update the collection using BeginEdit/Commit because we'd lose the edit transcation that the user is currently using in the EditEvent window.
Alternatively, we could update the collection by removing the old appointment and adding the new one, but this causes reordering of the appointments that occur at the same time and loss of selection (e.g if the selected item is the one that we remove and then add).
What is the best way to update the collection of appointments while the window if open, either because the user is creating or editing an event, without loss of selection and/or reordering of the events that occur at the same time?