So I have a grid that needs to have dynamically created columns based on miscellaneous fields in our database. I initially tried destroying and reinitializing the grid with the new options including the new columns, and then I found a forum post on Tree Lists that also suggested doing that so I assume it's the best option for dynamic columns. And it is working for my data, the new column data shows up in the grid, however the column titles are not showing up.
Any clue as to why the headers are not updating?
My new columns are formatted like so:
var newMiscellaneousColumn = {
field: "MiscellaneousHeaderFields[" + y + "].FieldValue",
title: sub.MiscellaneousHeaderFields[y].FieldName,
width: 150,
encoded: true,
hidden: false
};
Looking in the kendo grid in the developer console shows my columns are there and seem to be setup correctly.