Replacing 1st Dynamically loaded usercontrol by a 2nd one

3 posts, 0 answers
  1. Regis Daniel Oliveira
    Regis Daniel Oliveira avatar
    2 posts
    Member since:
    Dec 2008

    Posted 18 Aug 2010 Link to this post

    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. Sunil
    Sunil avatar
    29 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2010 Link to this post

    There is no attachment?
  3. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 20 Aug 2010 Link to this post

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