Hello comunity,
I have this code https://snippet.webix.com/ldct7vta
I trying to manipulete the id of my “checkbox” inside my datatable.
For example, If I check my box, it will add a new element to my list with the information of the row checked.
Hello @CesarCTA ,
For example, If I check my box, it will add a new element to my list with the information of the row checked.
The most feasible solution in such use-case to to sync the ui.datatable and ui.list and define behavior for a slave list. Namely, you can filter out records before they will be shown in the slave (only checked items will be shown):
$$("tram_list").data.sync($$("gridTram"), function(){
this.filter(function(data){
return data.soli_tram;
});
});
Please take a look at the next snippet:
https://snippet.webix.com/8dts7eih
You can read more about data syncing in the following article within our documentation -
Thank you annazankevich.!!!
Your answer was better than mine