Open flack opened 9 years ago
I agree with that the usage of colgroup
can be helpful in general. I consider the feature some years before. Do you tested the code? Look at the demo.
The problem is that colgroup
is not so large.
It looks like you can style columns visibility - http://www.search-this.com/2007/04/11/styling-table-columns-with-css/
Yes, I just tried that with Oleg's jsfiddle: If you replace display: none
with visibility: collapse
, it works as expected
Have you tried "visibility: collapse" on Blink-based browsers?
I've tested Oleg's fiddle with "visibility: collapse" on the latest Chrome and had no luck. Everything is OK on FF and IE.
Hm, I guess you're right: Chrome (I tried 37) doesn't support that correctly
Another option for improving rendering performance might be React:
http://facebook.github.io/react/
Unfortunately, their core lib is 130Kb, almost as big as the entire jqgrid. But maybe we can borrow a few ideas from them
Currently, if you set e.g.
hidden: true
incolModel
,style="display: none"
is added to each cell in the column. Performance might be better if we define acolgroup
instead, because then the runtime for setting these properties would be O(1) instead of O(n). Markup would then look like this: