Binding user controls to dynamically created tabs not showing latest tab

2 posts, 0 answers
  1. Nam
    Nam avatar
    1 posts
    Member since:
    Feb 2012

    Posted 03 Nov 2014 Link to this post

    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.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 06 Nov 2014 Link to this post


    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.

    Boyan Dimitrov

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top