Databinding when dynamically adding user controls from the client

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    8 posts
    Member since:
    Feb 2012

    Posted 07 Feb 2012 Link to this post


    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 last week.
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 10 Feb 2012 Link to this post


    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?

    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 >>
  3. DevCraft R3 2016 release webinar banner
  4. Kevin
    Kevin avatar
    8 posts
    Member since:
    Feb 2012

    Posted 10 Feb 2012 Link to this post

    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.
Back to Top