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

Databinding when dynamically adding user controls from the client

2 Answers 60 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 07 Feb 2012, 05:52 PM
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

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 10 Feb 2012, 10:44 AM
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 >>
0
Kevin
Top achievements
Rank 1
answered on 10 Feb 2012, 09:47 PM
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.
Tags
TabStrip
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or