cannot change parent programatically

Dear dhtmlx gantt

i follow the code from here

viewtopic.php?f=15&t=33110&p=104396&hilit=change+parent#p104396

but its not work
im using version dhtmlxGantt v.3.3.0 Professional
can you fix it, or maybe another method ?

Regards,

Jadun

my mistake,
solved with this

NEXT question, how to change index or sequence

  • a
    – b
    – c
    – d
    – e

so the result is

  • a
    – e
    – b
    – c
    – d

Hello,
you’ll need these methods:
docs.dhtmlx.com/gantt/api__gantt_movetask.html
docs.dhtmlx.com/gantt/api__gantt … index.html