Is it possible to add an entierly new column to a slickgrid on the fly. I am trying to make a user buildable matrix and need them to be able to add columns as they build.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
var columns = grid.getColumns();
columns.push( columnDefinition );
grid.setColumns(columns);
With for instance
var columnDefinition = {id: "column1", name: "title", field: "column1", editor: Slick.Editors.Text};