I have a grid that I toggle the visibility of a column on when a button is pushed.
It hides the column header just fine, but with the data it hides is one column to the left.
I'm hiding the column NMFC, and when that is hidden, the NMFC column header disappears.
However, the data under the Weight column ("lbs") is the data that is hidden and the value under NMFC ("test") is now visible underneath the Weight column.
Here's the code for the columns:
columns.Bound(i => i.WeightUOM)
columns.Bound(i => i.NMFC).Width(50);
Here's the script code:
var itemGrid = $("#QuoteItemGrid").data("kendoGrid");
I am using a detail template on this grid, so maybe it is throwing the index off by one? Not sure, but any tip would be helpful. I can provide more code if needed. I thought I would try and keep it simple for this first post and only put critical code in.