How to get parent resource id

Asked by Anonymous
11 years ago.

Hi,

I created Dynamically resource tree.

i'm able to get child resource id using e.NewResource in OnEventMove method but i want "Parent Resource ID".

Answer posted by Dan Letecky [DayPilot]
11 years ago.

You should be able to do this:

Resource r = DayPilotScheduler1.Resources.FindById(e.NewResource);
Resource parent = DayPilotScheduler1.Resources.FindParent(r);

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.