Add columns to datatable in runtime

I’ve tried using table.define but it doesn’t seem to work. Is there anyway to do this?

You need to add the new column’s config in grid.config.columns and call grid.refreshColumns()

http://webix.com/snippet/6d94f86b

Instead of manipulation with grid.config.columns you can use define ( grid.define(“columns”, new_config); ) it will have the same effect, just be sure to call refreshColumns after that.