Announcement

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

    Tabset set methods not working in clickhandler

    Hi,

    I am trying to use setHeight and setSelectedTab for TabSet in clickhandlers.

    I tried it in CellClickHandler of a Grid and in a ClickHandler of a ButtonItem and the behavior of the TabSet is not changing.

    However, I am able to use the same methods inside the clickhandler of the TabSet.

    I am not getting any errors and the onClick of the Handlers method is correctly called.

    Is this a bug or it is a correct behavior and I am doing something wrong??

    Thanks.

    #2
    Hi,

    I'm opening and changing tabs when clicking in nodes in a tree and it works just fine.

    This is how I do it:

    Code:
    int panelID = [some panel ID];
    TabSet tabs = [some tabset];
    
    tabs.selectTab(panelID);
    ([some panel ID] and [some tabset] should of course be replaced by some logic.)

    And when opening a new tab:

    Code:
    Tab tab = new Tab();
    tab.setTitle("something");
    tab.setCanClose(true);
    tabs.addTab(tab);
    tabs.selectTab(tab);
    Hope that helps.
    Last edited by RC; 8 Apr 2009, 07:06.

    Comment


      #3
      Hi RC,

      This worked but I still have the setheight issue.

      Thanks.

      Comment


        #4
        Be sure your post includes:

        1. the SmartGWT or SmartClient version and browser version(s) involved;

        2. for a server-side problem, the complete logs generated during processing of the request;

        3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);

        4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and

        5. sample code.

        Posts with incomplete information are much more likely to be ignored.

        Comment

        Working...
        X