Hi,
In my datatable I have multiple editable columns under one parent column.
The data set is also having an array object to show values into those sub-columns.
However, whenever I change some values in those columns, the data set object is not getting updated properly. Instead it is creating another extra key-value pair within it.
Also inside the $init the mechanism to show the existing value in the cells is getting spoiled due to it.
For example for one row only the data set object when the table renders before any editing looks like below:
obj = {“No”:“1”,“Name”:“Justine”,“scores”:[{“rank”:2,“vote”:“SF”}],“place”:[{“type”:“type1”,“name”:“name1”}],“id”:1512586172984}
Now if I edit the place_type column to some other place say, ‘type1234’, that gets added additionally to the data set as below:
obj = {“No”:“1”,“Name”:“Justine”,“scores”:[{“rank”:2,“vote”:“SF”}],“place”:[{“type”:“type1”,“name”:“name1”}],“id”:1512586172984,“place_type”:“type1234”}
The snippet is here https://webix.com/snippet/d5d2d19d
However for other plain editable columns like ‘Name’ it is not happening.
What is going wrong and how can it be solved ?
Thanks.