cancel
Showing results for 
Search instead for 
Did you mean: 

Control tabstrip during runtime

Former Member
0 Kudos

Hi All,

I need to control tabstrip during runtime here i am having 6 tabs where i need to display tab3 as default. Here we use Selected Tab property to display tabs but here i need to bind attribute and control Selected Tab property through coding .Can anyone tell me how to do this.

Thanks,

Rahul.

Accepted Solutions (1)

Accepted Solutions (1)

amolgupta
Active Contributor
0 Kudos

Hi Rahul,

Pls note that TabStrip UI element's selected Tab property can be bound to a context attribute of type String.

Also, note the options the selected Tab gives you in the drop down.

In my case the options are Tab and Tab1 as i have cretaed two tabs.

If you execute the following code then Tab(first one) will be selected

wdContext.currentContextElement().setSelectedTab("Tab");

If you execute the following code then Tab1(second one) will be selected

wdContext.currentContextElement().setSelectedTab("Tab1");

I put this code on actions of respective Buttons and it worked fine dynamically at run time.

I hope this will help solve your problem.

Regards,

-Amol Gupta

Former Member
0 Kudos

Hi Amol,

Thanks for your reply it is working!!!!!!

Answers (0)