Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Nested grid scrolling issue

    Hi Team,
    I am looking for a solution to keep the grid scrolling nested only.
    https://www.smartclient.com/smartgwt...ed_nested_grid

    I tried this example. If we scroll the data in nested grid, as soon as it reaches the end of grid the parent grid started scrolling. Is there any way to prevent this. I just want the scrolling to work on the focused grid only. It should stop responding to mouse scroll if we have already reached top or bottom of grid.

    Thanks in advance.

    #2
    You can achieve what you need by implementing a mouseWheel() handler in the inner ListGrid as follows:

    Code:
                    countryGrid.addMouseWheelHandler(new MouseWheelHandler() {
                        @Override
                        public void onMouseWheel(MouseWheelEvent event) {
                            event.cancel();
                        }                    
                    });
    Regards
    Isomorphic Software


    Comment

    Working...
    X