Show/Hide columns function changes the width of the displayed columns - How to prevent?
Show/Hide columns function changes the width of the displayed columns - How to prevent?
Hi,
I have a table with ten columns, each with an appropriate width (200px for the first column and every other column is 60px). When I choose to hide some columns (using ColVis), the first column width changes from 200px to an increased value equal to the pixel width of the hidden columns.
I want to keep the first column always = 200px.
Can I do that?
Here is the "before" image
http://s1138.photobucket.com/albums/n524/lenwright1/before.png
Here is the "after" image
http://s1138.photobucket.com/albums/n524/lenwright1/After.png
I have a table with ten columns, each with an appropriate width (200px for the first column and every other column is 60px). When I choose to hide some columns (using ColVis), the first column width changes from 200px to an increased value equal to the pixel width of the hidden columns.
I want to keep the first column always = 200px.
Can I do that?
Here is the "before" image
http://s1138.photobucket.com/albums/n524/lenwright1/before.png
Here is the "after" image
http://s1138.photobucket.com/albums/n524/lenwright1/After.png
This discussion has been closed.
Replies
"aoColumns": [{ "sWidth": "200px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px" }, { "sWidth": "60px"}, { "sWidth": "60px"}]
I am not sure if the cause is because you have a fixed width on your table or something to that effect but it's just a guess :)