Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TabStrip > Databinding when dynamically adding user controls from the client

Not answered Databinding when dynamically adding user controls from the client

Feed from this thread
  • Kevin avatar

    Posted on Feb 7, 2012 (permalink)

    Hi,

    I have a RadTabStrip in which I allow the user to dynamically add tabs, which then make a call for the appropriate user control to populate the newly added tab.  

    One of the requirements is that the user can add the same tab/control multiple times.

    This works good and the control is added as many times as needed.

    The problem arrives when databinding.  

    Lets say the user adds 3 tabs, each containing the same user control, which contains a grid.  Then, on the third tab, the user performs a search/databind on that third grid.  The problem is that the first tab grid is the one updated/data bound, no matter what tab the search was performed on.  Nothing happens on the third grid.  

    The user control consists of a textbox and grid, bound to an entity datasource.

    How do I correlate the appropriate grid to the textbox text, which is the WHERE parameter for the entity datasource.

    Thanks!  If this is unclear or you need more information, please let me know.
    This is using ASP.NET 4 and the latest version of the Telerik controls, downloaded from telerik.com last week.
    Kevin

    Reply

  • Dimitar Terziev Dimitar Terziev admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello,

    Since your scenario is rather complex and the problem might be caused by some custom logic, I would need a sample page so I could inspect it in order to get a better view of the situation. Also could you verify that each of your controls are having unique names as well as the RadGrids in them?

    Greetings,
    Dimitar Terziev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Kevin avatar

    Posted on Feb 10, 2012 (permalink)

    I was in the process of recreating a simplified example of this when I solved the problem. It was indeed my custom code.  

    Thank you.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TabStrip > Databinding when dynamically adding user controls from the client
Related resources for "Databinding when dynamically adding user controls from the client"

ASP.NET TabStrip Features  |   Documentation Demos   |  Telerik TV  |  Self-Paced Trainer  |   Step-by-step Tutorial  ]