Add controls dynamicly

2 posts, 0 answers
  1. Mehrdad
    Mehrdad avatar
    17 posts
    Member since:
    Jan 2011

    Posted 29 Oct 2011 Link to this post

    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?
  2. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 01 Nov 2011 Link to this post

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