开发者

Disable column resizing in <rich:extendedDataTable>

开发者 https://www.devze.com 2022-12-19 13:55 出处:网络
I am using rich:extendedDataTable to display a table. But I need to dis开发者_JAVA技巧able the column resizing in this table. I have tried using width component in rich:column but I am getting the sam

I am using rich:extendedDataTable to display a table. But I need to dis开发者_JAVA技巧able the column resizing in this table. I have tried using width component in rich:column but I am getting the same thing. Even I have used css class to fix the column size that is also nnot worth. Any way out?


There's no way to disable column resizing within the <rich:extendedDataTable> tag itself. However, with a little CSS to hide the element that enables resizing, you can accomplish what you're trying to do:

<style type="text/css">
    .extdt-hsep {
        display: none;
    }
</style>

Note that this will only prevent the user from resizing columns. It will not stop the automatic ratio-based resizing that happens when you resize the grid itself (e.g.: when you resize the window and the grid has 100% width).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号