Hi, I am new on Webix UI components. So, I have a question about master-slave data grid. How can I do this? Could you make me a sample code snippet.
Click master row and show these row’s data.
Regards.
Hi, I am new on Webix UI components. So, I have a question about master-slave data grid. How can I do this? Could you make me a sample code snippet.
Click master row and show these row’s data.
Regards.
Hello,
It is possible with data binding. For more information, please check also the following article.
Sample: Code Snippet
there are different solutions depending on situation.
2. Load slave table data on master item click
master.attachEvent("onItemClick", function(id) {
slave.load("/path/to/slave/data?id"=id);
});
3. Set slave table data on master item click
master.attachEvent("onItemClick", function(id) {
var masterRow = this.getItem(id);
slave.clearAll();
slave.parse(masterRow.slaveDataProperty);
});