Keep Datatable & treetable in sync

I’m trying to keep the selection in sync between the two controls. Which select method would be best for this?

The user should be able to select rows in the tree table or columns in the datatable.

I’m currently using onSelectChange but they override each.

You could use
$$(“myDatatable”).blockEvent();
inside the onSelectChange event, sync the datatable, and then $$(“myDatatable”).unblockEvent;

Yep, you can use blockEvent() or check the current selection first, something like

if (id != this.getSelectedId())
    this.select(id);