I am using GXT grid (height is set as 350px) in GWT DisclosurePanel. DisclosurePanel will be in closed state when I add the grid into it.
When the user clicks DisclosurePanel header, the panel opens up and shows up the GXT Grid. All working as expected except that the GXT grid does not display the vertical scroll bar when there are lot of items in the grid.
I tried to setup Grid height on DiclosurePanel onOpen() event to forcefully trigger the scrollbar, but looks like my below DOM manipulation code does not add the style into "<div class="GP34Q33EGC-com-sencha-gxt-theme-gray-client-grid-GrayGridAppearance-GrayGridStyle-scroller"></div>"
Code:
grid.getView().getBody().getParentElement().getStyle().setHeight(350, Unit.PX);
I'm not very sure I explained the problem well here, due to some restriction, I am not able to post all code here. Please advise me if the problem makes sense to you.