Help with Checkbox in Datatable

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.

Comments

  • edited October 19

    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 -
    https://docs.webix.com/desktop__data_binding.html#syncingcomponents

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion