View Full Version : Grid column headers aligment on scrolling of the grid view

Roman Töngi
19 Feb 2014, 6:01 AM
When a grid view is scrolled horizontally, the column headers get aligned accordingly. I have a docked panel below the grid's column headers. How can I achieve that the items of my docked panel get aligned with the grid's column as well?

Thanks a lot

19 Feb 2014, 9:10 AM
have a docked panel below the grid's column headers.
Is the panel inside the header container so it will move along, or how do you have it setup?

Roman Töngi
19 Feb 2014, 9:37 AM
The grid has a docked item of dock: 'top' and weight: 200. So the docked panel (filter bar) is between the grid's columns header container and the grid's body (grid's rows).

Hence, the items in the filter bar obviously don't get aligned when the grid view is scrolled horizontally. I don't want to put the filters inside the columns header container, as it can be turned off.

Roman Töngi
20 Feb 2014, 10:40 AM
My solution is as follows: I capture the event view->bodyscroll and set the left style of the x-box-target dom el accordingly.