on 07-09-2012 8:52 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.