Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Problem with the order of web tab when open or close tab.

Last post 09-02-2008 17:56 by [Infragistics] Viktor Snezhko. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-14-2008 3:57

    • Le Anh Sang
    • Top 500 Contributor
    • Joined on 12-20-2007
    • Hanoi, Vietnam
    • Points 285

    Problem with the order of web tab when open or close tab.

    Hi All,

    I am implementing a feature of my application. It has been using Ultra Webtab. Now I want to open/close the Web tab dynamically from client.

    For example, I have 3 pages and I would like to view all of them. Assume that Page1 is on Tab1, Page2 on Tab2 and Page3 on Tab3.
    - The order is Tab 1 - Tab2 - Tab3.
    - After that, we close Tab1.
    - The order now is: Tab2-Tab3.
    - I click to view Tab1 again and here is the problem:

    I want the order on the Tab should be: Tab2-Tab3-Tab1 and I cannot not find a good solution to dynamically re-position tab or create tab from client.

    If I only visible the Tab1, the order will be
    Tab 1 - Tab2 - Tab3.

    Please let me know if you have any good solution to resolve this problem.

    Thanks!

    Regards,

    Sang
    • Post Points: 20
  • 09-02-2008 17:56 In reply to

    Re: Problem with the order of web tab when open or close tab.

    Hi Sang,

    It is not clear what you mean under create tab on client. UltraWebTab does not support building tabs on client. On client you may only change tabs. If you want to change selected tab then on some event like button click, then you may do something like below:

    function myButtonClick()
    {
      var tab = igtab_getTabById("UltraWebTab1");
      if(!tab) return;
      if(tab.getSelectedIndex() == 0)
         tab.setSelectedIndex(1);
      else if(tab.getSelectedIndex() == 1)
         tab.setSelectedIndex(2);

      else if(tab.getSelectedIndex() == 2)
         tab.setSelectedIndex(0);
    }

    Regards,
    Viktor
    Infragistics web team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems