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

Dynamic User Controls in Dynamic RadPageViews

3 Answers 156 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Paul Bishop
Top achievements
Rank 1
Paul Bishop asked on 31 Jul 2008, 07:44 PM
I am trying to add a dynamic user control through a dynamic RadPageView using the example from DynamicPageView.  The problem I am having is when I put in the PageViewCreated code, I get an error telling me that multiple controls with the same id exist.  I do not add the RadPageView on page load.  It gets added when an event is triggered on the page.  I ran a test and made sure the event wasn't being called twice.

One thing I am doing differently from the example I referenced is that I'm creating the UC when I create the RadPageView in my code.  The reason I have to do this is I have a RadGrid on my UC for which I set the data source.

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Aug 2008, 07:07 AM
Hello Paul,

This problem might occur if you are not setting IDs of the pageviews or UserControls.

If the above suggestion doesn’t help, it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Best wishes,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Bishop
Top achievements
Rank 1
answered on 02 Aug 2008, 05:22 AM
I'm setting the ID's.  I'll go ahead and submit a support a case.
0
Bob
Top achievements
Rank 1
answered on 06 Aug 2008, 09:15 PM
Paul, try NOT setting the id, just add the usercontrol.

When I was setting the ID, I got the same thing.
Tags
TabStrip
Asked by
Paul Bishop
Top achievements
Rank 1
Answers by
Paul
Telerik team
Paul Bishop
Top achievements
Rank 1
Bob
Top achievements
Rank 1
Share this question
or