Search code examples
jsonslickgrid

slickgrids with columns from dynamic json data


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


Solution

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