Hi,
found my code problem and would like to mention it here for feedback
I save different states of one datatable in database using getState and then save it in database as
$record["state"] = (string) json_encode($state);
but saving it as JSON then my widths in state are strings
,"size":["50","80","230","220","180","80","150","130","130","150","150","150","130","170","170","120","150","150","150","150","150","150","150","150","150","150","200","200","100","80","150","150","150","150","200","200","150","150","150","150","80","200"],
So when I try to load one of the datatable saved states in database then the webix try to make
additions of the widths but they are strings so I have concatenations than math addition.
This destroy the CCS left property on the columns like this
<div column="4" class="webix_column " style="width: 180px;
left: 360220px; top: 0px;">
So as solution you can save the JSON state in database using the flag
$record["state"] = (string) json_encode($state,
JSON_NUMERIC_CHECK);