slickgrids with columns from dynamic json data

心不动则不痛 提交于 2019-12-13 12:52:19

问题


I have a dynamic json data having the format

var cols= { "columns" : ["name","age", "Amount", "Date"]}

I need to set columns in slickgrid from dynamic data as in the format given above


回答1:


Call grid.setColumns({your new columns}) when your data loads.



来源:https://stackoverflow.com/questions/9894139/slickgrids-with-columns-from-dynamic-json-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!