Hi there,
I am trying to set the width of a column in a datatable after initialization (actually when the window is resized by using the resize event).
var datatable = new webix.ui({
view: "datatable",
...
onAfterRender: webix.once(function () {
webix.event(window, "resize", function () {
datatable.define("width", getAvailableResultListWidth());
datatable.setColumnWidth(1, 100);
...
});
But when i do that i get an exception:
Uncaught TypeError: Cannot read property 'minWidth' of undefined(…)
_setColumnWidth @ webix_debug.self-2acaddd….js?body=1:19062
setColumnWidth @ webix_debug.self-2acaddd….js?body=1:19056
(anonymous function) @ fast.results.self-5489454….js?body=1:187
(anonymous function) @ webix_debug.self-2acaddd….js?body=1:244
minWidth is set on the table and i tried setting minWidth on the column (or on all columns), but it does not help.
What am i doing wrong?
i am using webix 4.0.16.
Regards,
Marc