Been a while research, try to hide one specify column in kendo grid table
using this
$('#grid .k-grid-content table tr td:nth-child(8),th:nth-child(8)').toggle();
with no help, anyone has ideas?
The column I want to hide bind to
{
field: "CreatedDate",
width: 20,
title: "Create Date",
type: 'date',
template: '#= kendo.toString(CreatedDate,"MM/dd/yyyy") #'
}
[edited]
$('#grid div.k-grid-header-wrap th:nth-child(4)').toggle()
$('#grid div.k-grid-content td:nth-child(4)').toggle()
can only hide the header..but not the whole column, still need help!
Try this:
or (combined into a single selector):
Kendo UI Grid apparently breaks up the table into a structure like this:
As the table header and table body are in different
divelements, you need two selectors to get them both.