I have a large tabular structure in a page that needs to have column visibility toggled according to what tab of a tabbed control is active.
My solution as I outlined in another thread is to use bitmasks.
I've been asked to consider another approach where the table is duplicated - and each is in a div with display set to none except for the one pertaining to the active tab. So rather than messing around with column visibility on an individual table the display of the containing divs is toggled.
Simpler from a logic point of view but that's going to be a lot of duplicated markup - maintenance issues etc?
My main concern is performance. I know that anything whose display attribute is set to none won't get rendered. But it is still in the DOM - so wont this be bad from a performance perspective?
My solution as I outlined in another thread is to use bitmasks.
I've been asked to consider another approach where the table is duplicated - and each is in a div with display set to none except for the one pertaining to the active tab. So rather than messing around with column visibility on an individual table the display of the containing divs is toggled.
Simpler from a logic point of view but that's going to be a lot of duplicated markup - maintenance issues etc?
My main concern is performance. I know that anything whose display attribute is set to none won't get rendered. But it is still in the DOM - so wont this be bad from a performance perspective?
Comment