Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by silamril on Nov 11, 2009 21:33
open dhtmlx forum
Auto select first Tab

If there a way to set the tabbar to automatically select the first tab. I have a complex tab layout that is loaded with ajax and cannot set the for each ajax request.

Regards
Answer posted by Alex (support) on Nov 12, 2009 03:17

Hello,

a tab can be selected by the setTabInActive method:

tabbar.setTabInActive(tabId);

or you can set selected attribute directly in the xml:

<tab selected="1" ...>...</tab>

Answer posted by Silamril on Nov 12, 2009 07:43
I know about the tabbar.setTabInActive(tabId) but the ID's I use is UUID generated and I'm unable to track the id's. Also Some ID are duplicates and can't be used.

Can the tabobject be se to automatically set the first tab active?

 
Answer posted by Alex (support) on Nov 12, 2009 08:54

>> Can the tabobject be se to automatically set the first tab active?

Unfortunately, it can't

Answer posted by Silmaril on Nov 12, 2009 09:19
How difficult would it be to code that into the Class?