You found a bug! We've classified it as EXTGWT-2068 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191
    Vote Rating
    3
    support_csd_kz is on a distinguished road

      0  

    Default ToolBar with ToggleGroup overflow

    Безымянный.png

    Toolbar Overflow menu does not respect ToggleGroup functionality.

    It is allows to select few Items even if you created ToggleGroup.

    Code:
    public class EntryPointPrototype implements EntryPoint{
    
    
        public void onModuleLoad() {
            
            ContentPanel cp = new ContentPanel(
                    GWT.<ContentPanelAppearance> create(FramedPanelAppearance.class));
            cp.addStyleName("margin-10");
            cp.setPixelSize(200, 100);
            cp.getBody().getStyle().setBackgroundColor("white");
            cp.getBody().addClassName(ThemeStyles.getStyle().border());
    
    
            NorthSouthContainer con = new NorthSouthContainer();
    
    
            ToggleGroup group = new ToggleGroup();
    
    
            for (int i = 1; i < 6; i++) {
                final ToggleButton btn = new ToggleButton("Button" + i);
                btn.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
    
    
                    @Override
                    public void onValueChange(ValueChangeEvent<Boolean> event) {
    
    
                    }
                });
    
    
                group.add(btn);
                cp.addButton(btn);
            }
    
    
            ToggleButton normal = (ToggleButton) cp.getButtonBar().getWidget(0);
            normal.setValue(true, true);
    
    
            ToolBar tb = new ToolBar();
            con.setSouthWidget(tb);
    
    
            ToggleGroup group1 = new ToggleGroup();
            for (int i = 1; i < 6; i++) {
                final ToggleButton btn = new ToggleButton("Button" + i);
                btn.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
    
    
                    @Override
                    public void onValueChange(ValueChangeEvent<Boolean> event) {
    
    
                    }
                });
    
    
                group1.add(btn);
                tb.add(btn);
            }
    
    
            cp.add(con);
            RootPanel.get().add(cp);
        }
    
    
        public ToolBarsWindow(WindowAppearance appearance) {
            super(appearance);
        }
    
    
    }

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default

    Thanks for the report and the test case. I'm able to reproduce the issue and have filed a bug against the team. I'll update this thread with any changes we make.

Thread Participants: 1