Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用css隐藏/显示剑道网格的最后一列_Css_Kendo Ui_Kendo Grid - Fatal编程技术网

使用css隐藏/显示剑道网格的最后一列

使用css隐藏/显示剑道网格的最后一列,css,kendo-ui,kendo-grid,Css,Kendo Ui,Kendo Grid,在进行PDF导出时,如何隐藏包含动作元素的网格的最后一列 我想覆盖PDF导出的CSS,以便在导出网格时,最后一列隐藏在PDF中 我还需要显示导出PDF中的最后一列,因为该网格包含数据而不是动作元素。谢谢 这是我要覆盖的CSS: .k-pdf-export .k-grid-toolbar, .k-pdf-export .k-grid-pager, .k-pdf-export .k-grid-content table tbody tr td:last-child { display: no

在进行PDF导出时,如何隐藏包含动作元素的网格的最后一列

我想覆盖PDF导出的CSS,以便在导出网格时,最后一列隐藏在PDF中

我还需要显示导出PDF中的最后一列,因为该网格包含数据而不是动作元素。谢谢

这是我要覆盖的CSS:

.k-pdf-export .k-grid-toolbar,
.k-pdf-export .k-grid-pager,
.k-pdf-export .k-grid-content table tbody tr td:last-child {
    display: none;
}

.k-pdf-export .k-grid-header-wrap table thead tr th:last-child {
    text-indent: -9999px;
    display: none;
}

即使您使用CSS隐藏该列,剑道框架仍会将其导出到您的PDF中。