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

Add controls dynamicly

1 Answer 27 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mehrdad
Top achievements
Rank 1
Mehrdad asked on 29 Oct 2011, 12:21 PM
I have a search button in a asp.net page that show a pop-up and by closing that some controls are be added to a panel in my form using AjaxManager of Telerik.
I've used the Telerik:AjaxUpdatedControl to say render the panel everytime a search is done.
But my proble is when search is done for second time the controls that had been adde for first time will be removed.
how can I overcome this problem?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Nov 2011, 04:42 PM
Hi Mehrdad,

The most common reason for controls to disappear is to not recreate them on PageLoad. One good article about dynamic controls could be found on the infinities loop blog. Reading this article will help you clarify why you should take care of recreating the control on every postback

All the best,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Ajax
Asked by
Mehrdad
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or