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

Issues when dynamically loading controls

3 Answers 60 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
test
Top achievements
Rank 1
test asked on 28 Jul 2010, 05:52 AM
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

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 02 Aug 2010, 11:39 AM
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
0
test
Top achievements
Rank 1
answered on 02 Aug 2010, 03:08 PM

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

0
Pavlina
Telerik team
answered on 04 Aug 2010, 10:17 AM
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
Tags
Ajax
Asked by
test
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
test
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or