search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to get parent resource id

Asked by Anonymous
9 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]
9 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 months old and has been closed. Please create a new question if you have anything to add.