The following approach will autofill all columns of the row where a new value was selected. But there’s one more thing:
Data from richselect and other columns is in one JSON file
If you save data to the same file, options will be overridden too. After the data reloading you can lose some options, so please consider a possibility to load them from another file.
on:{
onItemClick:function(id){
var item = this.getItem(id); //an item from the suggest list
var row = datatable.getEditor().row;
var ditem = datatable.getItem(row); //a data item with the opened editor
datatable.eachColumn(function(column){
if (column != "id")
ditem[column] = item[column];
//preserves item's id, overrides other attributes
})
}
}