Problem with events in C1Scheduler

Posted by: jose.hernandez on 10 October 2017, 10:13 pm EST

  • Posted 10 October 2017, 10:13 pm EST


    We have linked the events AppointmentChanged and AppointmentAdded to two commands in the view model layer. When we add a new appointment, and the event AppointmentAdded raises, we change some properties of the appointment, like Id or start time (we need do it), before we modify these properties, we call to the method BeginEdit, and when we finish, we call EndEdit. In this moment, the event AppointmentChanged raises, and we don't know if this event comes from the modification of the new event or from a modification from the edit page in the calendar. How can we disable the event AppointmentChanged when we are adding and editing the new appointment?

  • Replied 12 October 2017, 1:12 am EST


    Could you please share a stripped version of your application, so that we could make changes to it and share back, as there are no direct properties to differentiate between the two.

    Ruchir Agarwal
  • Marked as Answer

    Replied 12 October 2017, 5:38 pm EST


    Finally, we have decided to use the event DataSourceItemSynchronized, which allows us to know if the source action is an insert, modify or delete event. And when we modify our object during the event execution, the binding occurs and no more events are raised.

    Thank you anyway,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels