问题
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