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

Replacing 1st Dynamically loaded usercontrol by a 2nd one

2 Answers 33 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Regis Daniel Oliveira
Top achievements
Rank 1
Regis Daniel Oliveira asked on 18 Aug 2010, 07:19 PM
Hi all!

I´m trying to build an application that will load usercontrols dynamically. Each new user control loaded should replace the previous one on the main page.

So, the main page have a Panel that will be used as a container for all dynamically loaded webcontrols. When this page is loaded for the first time, it will check the previous loaded user control and will reload this just like happens on the "Load user controls" example provided. The only diference is that the controls is recreated just after loading ViewState data, on a overrided LoadViewState method.

Firstly, the WebUserControl1 is loaded. There is two buttons on it. The first, just check if the RadLoadingPanel is working. The second when pressed, dispatch a event that will be intercepted by the main webpage. Then, the webpage will clear the container panel and will load the WebUserControl2. We can see the RadLoadingPanel poping up just after pressing the 2nd button but, when the process finishs, the WebUserControl1 is still visible while WebUserControl2 doesn´t .

If I disable AJAX, everything works as expected.

Am I doing something wrong?

Attached to this there is a simple example that you could use to reproduce the problem,
Thanks a lot!

Regis

2 Answers, 1 is accepted

Sort by
0
Sunil
Top achievements
Rank 1
answered on 19 Aug 2010, 05:11 PM
There is no attachment?
0
Iana Tsolova
Telerik team
answered on 20 Aug 2010, 09:28 AM
Hi Regis,

Please find our answer on that issue provided in the other thread you have posted on the same subject.

Kind regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Regis Daniel Oliveira
Top achievements
Rank 1
Answers by
Sunil
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or