Get parent Id tree timeline


#1

Hello,
how get i get the parent id in timeline mode tree onClick
for exemple :
key:20, label:“Web Testing Dep.”

http://snippet.dhtmlx.com/5f2f9b5d9


#2

Hi,

Use getActionData() method to return the current cursor-pointed section.
https://docs.dhtmlx.com/scheduler/api__scheduler_getactiondata.html

Demo https://snippet.dhtmlx.com/8a6db4495


#3

Hi Polina,

Am sorry, my question wasn’t clear, i want to ask how to get the parent id when on click the children node ?


#4

any idea :slight_smile:
thank you in advance


#5

When you know child Id value, you need to find parent in the array with section (elements in snippet).