Adding/deleting of recurring events

Hello,

We use dhtmlxScheduler to display recurring events.
We use our custom asp.net form instead of lightbox to add events shown on detail icon click.
We fugured out that when user changes or deletes “parent” recurring event (event_pid = 0) or an event in a serie “child” EventAdded is raised by scheduler itself (scheduler.attachEvent(“onEventAdded”, OnEventAdded))
We used it in our app, to add events to our db (which marks change/delete of a particular event from a serie as your docs suggest). Problem is same onEventAdded is raised when user changes/deletes “parent” recurrence event as well. When clicked at “parent” event on a scheduler, event_object parameter inside of onEventAdded handler has event_pid and rec_type params as it was a “child” serie event. So the question is how to tell if it is a “parent” or “child” event in handler ?

We need to send delete/update for recurrence “parent” event and insert for “child” / serie event.

Thanks,

Slava