This is a migrated thread and some comments may be shown as answers.

dynamically create tabstrips

3 Answers 161 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Pawan
Top achievements
Rank 1
Pawan asked on 14 Aug 2012, 10:43 AM
Hi ,

I have to dynamically create a Tabstrips . Suppose there are  Buttons(like 'profile" ,"Home", "ContactUS ","Services") .  Also I  have created partial view for this(profilePartialview , HomePartialview ,ContactusPartialView ,ServicePartialview) . Now when i click on "profile" than "profilePartialview" should be  rendered as tabStrips and Similary others. 

Please assist me how can i  achieve this.


Thanks,
Pawan

3 Answers, 1 is accepted

Sort by
0
Geet
Top achievements
Rank 1
answered on 27 Nov 2012, 08:48 PM
Did you get any solution for this? I'm facing the same problem.
0
Gary
Top achievements
Rank 1
answered on 29 Nov 2012, 01:41 PM
I am doing something similar at the moment. In HTML, not MVC.

So, to create a tab with dynamic content, just use the API calls append, insertBefore, insertAfter etc.

I use append:

myTabs.append({ text: "Tab Name", contentUrl: "/Content/ParialView.html" });

Gary
0
Roy
Top achievements
Rank 1
answered on 13 Feb 2014, 08:19 PM
I am having a similar issue, I am trying to build tabs dynamically in the change event of a datasource, and then inject a template into each tabs content that uses a different datasource. has anyone been able to accomplish something like this?
Tags
TabStrip
Asked by
Pawan
Top achievements
Rank 1
Answers by
Geet
Top achievements
Rank 1
Gary
Top achievements
Rank 1
Roy
Top achievements
Rank 1
Share this question
or