Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webix remove columns from a DataTable?

With Webix is there anyway to remove columns from a datatable? I have found the webix datatable api documentation, but I can't find anything about removing a column.

like image 338
Carlos Avatar asked Jun 05 '14 13:06

Carlos


1 Answers

I've finally figured it out. I was able to find a sample that included the proper code.

Relevant section:

var columns = webix.toArray(grid.config.columns);
columns.removeAt(2);
grid.refreshColumns();
like image 129
Carlos Avatar answered Oct 13 '22 20:10

Carlos