Announcement

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

    ListGrid grouping disable expand/collapse

    I'm trying to disable the expand/collapse functionality for grouped items in a list grid, but I can't figure out how to do it. That is:

    I have a bunch of records grouped by country. I have the groups start out expanded. There is no other way to group the records (or ungroup them). I don't want the user to be able to expand/collapse the groups because it is useless functionality and just clutters my UI.

    How do I go about disabling the expand/collapse functionality?

    Thanks,

    Andrew

    #2
    Just bumping this thread.

    I should mention that I have tried consuming the CellClickEvent by using:

    Code:
    listGrid.addCellClickHandler(new CellClickHandler() {		
    	@Override
    	public void onCellClick(CellClickEvent e) {
    		e.cancel();
    	}		
    });
    I've also tried consuming the CellContextClickEvent and just a regular click event using the same sort of idea, with no luck either way.

    I wouldn't even mind a low-level way to disable it (such as disabling the native javascript call somehow). The problem is, I'm having difficulty seeing where the function is attached and being called from.

    Comment


      #3
      Check the latest nightly build. There is a new property, canCollapseGroup, that can be set on the grid to enable/disable this feature. Default is on.

      This property is in SC and should be automatically included in the new SGWT builds.

      Comment


        #4
        Thanks! I will download the latest build and give it a shot.

        --Andrew

        Comment

        Working...
        X