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

Binding user controls to dynamically created tabs not showing latest tab

1 Answer 22 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Nam
Top achievements
Rank 1
Nam asked on 03 Nov 2014, 04:26 PM
I am creating a prototype with tabs similar to the tabbed web browser. I add 2 tabs on intial load. the first tab is bound to a user control and the second tab is a empty stub to create a new tab(just as in tabbed web browsers). When I click on the stub tab, I add a new tab and a pageview to assign to it and also bind a user control to the pageview. the issue is, this newly added tab renders the contents of the previous filled tab instead of empty controls. I also would like to add a little close button to be able to close the tabs. Pls provide any solutions.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 06 Nov 2014, 12:39 PM
Hello,

Please find attached a sample page that implements very similar scenario. For testing purposes the "Create a new tab" is not always the last tab. All newly added tabs are created dynamically and they all use same user control with only one text box. When the new tab is created the text box is empty no matter if in the previous tab there is a text value in the text box.


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TabStrip
Asked by
Nam
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or