Sub-tab forward button
Hello,
I have two main tabs "A" and "B" (parent tabs) and two more child-tabs under "A".
I know this OnClick property to move to next parent tab, but it doesn't work with subtabs.
Or even to set such button to move forward to a specific tab or subtab.
Any suggestion?
Thank you!
I have two main tabs "A" and "B" (parent tabs) and two more child-tabs under "A".
I know this OnClick property to move to next parent tab, but it doesn't work with subtabs.
But I would like to set an "OnClick" function button to move to next subtab section (from subtab A (1) to subtab A (2)... Is it possible?var currentTab = fd.tabControl(0).tabs('option', 'active');
fd.tabControl(0).tabs('option', 'active', currentTab + 1);
Or even to set such button to move forward to a specific tab or subtab.
Any suggestion?
Thank you!
- Attachments
-
- subtabs.JPG (36.91 KiB) Viewed 4367 times
Hello MP_FD,
fd.tabControl() holds the index of tab control on the form. The Parent Tab index is 0, the Child Tab index is 1.
To switch the tab index of the child tab control the code should look like this:
fd.tabControl() holds the index of tab control on the form. The Parent Tab index is 0, the Child Tab index is 1.
To switch the tab index of the child tab control the code should look like this:
Code: Select all
var currentTab = fd.tabControl(1).tabs('option', 'active');
fd.tabControl(1).tabs('option', 'active', currentTab + 1);
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests