Hi,
I have a TreeTable and a Tree retrieving data from server (url:“data.php”). This works fine.
If I understand things correctly, it would make more sense to use a DataCollection which would retrieve the data (url:“data.php”) and then sync TreeTable & Tree from that DataCollection (both beeing initially configured with no data using: data:""):
store = new webix.DataCollection({
url:"./data.php"
});
$$(“mytable”).data.sync(store);
$$(“mytree”).data.sync(store);
I tried it. JS debugging leads me to think that data is correctly loaded into “mytable” and “mytree” ($$(“mytable”).data.pull is filled with correct data), but nothing shows up, even after $$(“mytable”).refresh();. No error message in console either.
Is there anything I’m doing wrong? Could someone please point me to the right direction?
Thank you.