Announcement

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

    problems with tabset

    Hello everybody.

    i have a problems with TabSet, it is my code:

    Code:
    topTabSet.addClickHandler(new ClickHandler() {
     @Override
            public void onClick(ClickEvent event) {
                    if (topTabSet.getSelectedTab() == tTabGestoria) {
                    	   addButton.addClickHandler(new ClickHandler() {
                    		      public void onClick(ClickEvent event) {
                    				GestoriaGrid().startEditingNew();			
                    		      }
                    		    });
    
                    } else if (topTabSet.getSelectedTab() == tTabSiniestros) {
                    	 addButton.addClickHandler(new ClickHandler() {
               		      public void onClick(ClickEvent event) {
               			   GridSiniestros().startEditingNew();		
               		      }
               		   
               		    });
    
                    } else {
                    	 addButton.addClickHandler(new ClickHandler() {
                  		      public void onClick(ClickEvent event) {
                  		   
                  		      }
                  		    });
                    }
    
                }
    
            });
    addButton is a ImgButton and i have a tab inside a accordeon and the addButton is a control from accordeon, like this: http://www.smartclient.com/smartgwt/...ustom_controls ,but with a tabset


    if i click on tTabGestoria and after on addbutton i can edit the grid, but if i click after on tTabSiniestros i will edit GridSiniestros() and gridGestoria and i just want to edit GridSiniestros() if i am on GridSiniestros() or i just want to edit gridGestoria if i am on gridGestoria.

    any ideas? Thanks!!!
    Last edited by mogurito; 22 Jan 2013, 18:06.
Working...
X