hi, how to bind from datatable to datatable, for example when I click edit button in column in datatable it will redirect to datatable again but only one data what I want to edit, thank you.
Hi @rian ,
If you want to make editable the row via button, you need to add this
onClick:{
editbtn:function(ev, id, html){
var sel = this.getItem(id).title;
if (sel)
this.editRow(id)
}
},
and this code to the datatable:
{
view:'datatable',
editable: true,
editaction: "custom",
...
}
To enable editing in the column
{
id:"title",
header:"Title",
sort:"string",
editor:"text",
...
}
I think this information may be useful for you. Here is a description of how to use bind and sync methods
To make editing in both datatables, you need to use sync method
Sample: Code Snippet
If you want to click the button from the first datatable, but add editing to another one so it will look like this:
https://snippet.webix.com/y6w2cqsq
hi @Nastja, thanks…
I use a method like this
$$ (“tableEdit”). data.sync ($$ (“dtablevip”), function () {
this.filter (function (data) {
var x = data.id;
return x;
});
});
but all data are still selected, so that only the data that I want appears, such as one id