hello,
i want a functionally dhtmlxtabbar is open conditionally first check a preference of previous tab after that it is open .
For example
i have a three tab
A Tab, B tab, C tab .
if A tab is open then i want to open B tab then alert message is show 'first close A tab after that B tab is open ’ & viceversa.
Similary this concept is follow C tab and A tab && B TAb and C tab.
actually i used 7 tab but i used this concept only 3 tab so it is possible or not .
thank u
Richi
Hello,
here are the methods that can be useful. And you could decide yourself whether the desired functionality is possible or not:
-
setTabActive(tabId) method activates a certain tab by its id.
-
onSelect event is called when the new tab is actived. If its handler returns true, the tab is actived, in the other case, the tab won’t be activated. Note that setTabActive calls onSelect event.
tabbar.attachEvent(“onSelect”,function(tabId,previousTabId){
/your code here/
return true
})
hello sir,
my problem is that i simple check how much tab is open and get id of that tab .when i click a tab then respose go to the this function.
function createnewtab(id, str) {
if (!dhxTabbar._tabs[id]) {
dhxTabbar.addTab(id, str, “*”);
dhxTabbar.setContentHref(id, id);
}
dhxTabbar.setTabActive(id);
}
so i dont inderstand where we put ur solution in this function
so could you help me
Regards,
Richi
Hello,
I did not provide a ready solution. I just mentioned methods that relate selection. And you should decide whether and how they can be used.
ok Sir,
I tried it but problem is not solved .