I tried to hideColumn(k) in databound event when the whole column has null values. But because my first row of header is colspan of 6 columns, so it did not hide properly. I could only hide the first column or the second column (contains all the columns). I tried grid.columns[1].hideColumn(3) but failed as hideColumn is related to grid.
How can I achieve that?
columns: [
{ field: "facname", title: "Facility", attributes: { style: "text-align:left" }, width: "200px" },
{
title: "",
columns: [
{ field: "envelopes[0]", title: "Food", attributes: { style: "text-align:right" }, width: "90px", template: "#= envelopes[0] == null ? '-' : kendo.toString(envelopes[0], 'c0') #" },
Thanks.
How can I achieve that?
columns: [
{ field: "facname", title: "Facility", attributes: { style: "text-align:left" }, width: "200px" },
{
title: "",
columns: [
{ field: "envelopes[0]", title: "Food", attributes: { style: "text-align:right" }, width: "90px", template: "#= envelopes[0] == null ? '-' : kendo.toString(envelopes[0], 'c0') #" },
Thanks.