on 02-24-2011 3:35 PM
Hello Experts,
I have a got a scenario where I have 4 option button on the page & Tabstrip having 4 tabs below that.
Based on the options he chooses I need to make those tabs visible or invisible.
Can any one of you suggest me how can I do it.
PS:
I tried creating a Value attribute with Boolean as a type & assigned it to the Visibility of the Tab.
This think works but the problem is after selecting the options the tabs are collapsed on each other..so user cant see it unless he goes onto the navigation & choose the appropriate one.
Thanks in advance.
You nead to create a method and call it from the event "onSelect", in the TabStrip.
Create a context element like "SelectedTab". Use this context element to control what Tab you selected in the method like this:
if (wdContext.currentContextElement().getSelectedTab().equals("TabX"))
{
...
}
else if(wdContext.currentContextElement().getSelectedTab().equals("TabY"))
{
...
}
Best regards,
Ana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an string type attribute as selectedTab and bind it to the SelectedTab property of the TabStrip.
In the action of your option button, set the name / id of tab that you want to display in the selectedTab attribute so that the tab gets displayed
Lets the tabs are Tab1, Tab2, Tab3 and Tab4. Now on a button click you want Tab3 to be displayed then on the action of button write the code as
wdContext.currentContextElement().setselectedTab('Tab3');
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.