Treetable dynamic add tasks to a parent

Hi there, is it possible to add a task inside another clicking in a button without doing refresh on the page??

For example in this snippet: http://webix.com/snippet/b43f717c ; i want the “part 999” to be inside “part 666” when a button is pressed.

It’s possible with the treetable’smove method:

http://webix.com/snippet/764a4f01

Thanks!

And for another way… for example in the snippet “part 666” inside “The Shawshank Redemption” is it possible??

Parent row has to be specified in details object ofmove(), as mentioned in method’s description. To get the first row of the datatable, you can usegetFirstId:

    click:function(){
      var select = grida.getSelectedId();
      if (select){        
        var topParent = grida.getFirstId(); 
        grida.move(select.id, 0, grida, {parent:topParent});
      }                         
    }