Issues when dynamically loading controls

4 posts, 0 answers
  1. test
    test avatar
    17 posts
    Member since:
    May 2007

    Posted 28 Jul 2010 Link to this post

    Hi Telerik Team:

    I have one big issue when I dynamically load controls in AJAX. When the second control is loaded into a panel (replace the first control). The view source is still showing the first control content. As a result, my javascript function cannot access control fields from the client side.

    I have looked at your sample
    http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx


    It has exact same issue. If you browse into the seond control (task control) after login. The view source still shows the first control content (login control). If you remove the ajax, things back to normal.
    I need to access those controls through javascript. And I have to use dynamically control loading.

    Your help is appreciated.

    Wei
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Aug 2010 Link to this post

    Hi,

    Once a container control (asp Panel) is added to the UpdatedControls collection, the view source will show all the updated controls into all containers. Please review the following help topic for more information on similar issue:
    http://www.telerik.com/help/aspnet-ajax/ajax-force-controls-to-postback.html

    Sincerely yours,
    Maria Ilieva
    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
  3. test
    test avatar
    17 posts
    Member since:
    May 2007

    Posted 02 Aug 2010 Link to this post

    Hi Maria:
    I look at this topic: http://www.telerik.com/help/aspnet-ajax/ajax-force-controls-to-postback.html. I followed it, but  I still don't see anything (any html code) inside the panel in the html view source. Can you please create a sample for me?

    Sincerely yours,
    Wei

  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 04 Aug 2010 Link to this post

    Hello Wei,

    Attached to this message is a simple working project which demonstrates how to achieve your goal. Please give it a try and let me know of other questions or problems arise.

    I hope this helps.

    All the best,
    Pavlina
    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