I have a large grid (very wide) and in that grid, there are several columns that are hidden by default (in other words, I render all the columns and then I call setColumnHidden for the columns that should not be displayed by default).
The problem is that even though I am collapsing columns properly, the footers are appearing far the the LEFT of where they should be appearing and are not aligned with their columns.
Looking in Firebug, your code is adding the style “display: none” to the containing
tag for the hidden columns. I don’t understand why this is causing the columns to be misaligned on the LEFT and not on the right, but I have tried this in multiple browsers and OSs with the same result.
I have the pro version of 2.5.
Is this a known issue and is there a workaround?
UPDATE: I have noticed that if I move the logic that performs the setColumnHidden operations into the doonXLE event handler, the footers are aligned properly, although this is clumsy because the columns that are supposed to be hidden are visible on screen until the doonXLE event handler is triggered.
Unfortunately we cannot reproduce this issue locally. Are you using rows grouping or split mode? Please open ticket at support.dhtmlx.com/ and provide us any demo link or any kind of sample where we can reproduce it.
Olga, I am not under warrantee, so I don’t think I can put a ticket out.
I am not using split mode or grouping.
I don’t have time to put a demo together, but to summarize the two scenarios (a. the one with problems, b. the workaround).
a. define headers and footers, etc, setColummHidden for some columns, initialize the grid
RESULT: the footers are misaligned with the columns. Somehow the footers are aligned far left of where they should be.
b. define headers and footers, etc, initialize the grid, in the doonXLE function, setColumnHidden for some columns.
RESULT: the page is slower to load, but the footers are properly aligned.
RESULT: the footers are misaligned with the columns. Somehow the footers are aligned far left of where they should be.
are you using #cspan or #rspan in the footer? Can you provide example of grid initialization?
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan