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!
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);}