Hello all!
My app has 12 grids that are nearly identical in structure, often appearing on the same page. However, half have one extra column.
Since hey are so similar I have extracted their initialization into a single function.
But now I need to conditionally hide that one column.
In order of preference I'd like to know how to
My app has 12 grids that are nearly identical in structure, often appearing on the same page. However, half have one extra column.
Since hey are so similar I have extracted their initialization into a single function.
$.each($(
".kendoGrid"
),
function
() {
loadJobGrid(
'#'
+ $(
this
).attr(
'id'
));
})
But now I need to conditionally hide that one column.
In order of preference I'd like to know how to
- Hide columns after a grid is created. (and will this be a problem after events like datasource refresh, or paging?)
- Or ... Modify the the columns: [ ... ] section to conditionally add a field.
Thanks all!