Dynamic PopupControls won't show

Last post 01-26-2007 9:23 AM by nowakr. 2 replies.

Sort Posts:

  • Dynamic PopupControls won't show

    01-04-2007, 11:44 PM
    • Member
      point Member
    • nowakr
    • Member since 01-04-2007, 11:22 PM
    • Posts 2

    I am dynamically creating UserControls, which contain a PopupControl.

    If I place one of these UserControls on a page, the PopupControl works fine.

    On my search results page, I load all the UserControls into a Panel, then into a hidden Panel.

    When a user clicks the preview of the UserControl the entire UserControl shows up in another location.

    document.getElementById('divView').innerHTML = document.getElementById('"

    + pnl.ClientID + "').innerHTML;

    Just by doing that on click of the preview.

    What I did just made a copy of the UserControl (and the PopupControl), when the copy is shown in this new location, the PopupControl does not popup.

    Is there any way to make it popup in the copied location?  I get new JavaScript errors when performing this action.  So I am assuming that the PopupControl is activating, but in a hidden div.

    Any ideas at all would be great, I've spent many hours and now finally figured out what the issue is, but I don't know how to solve it, if it is solveable.  Thanks!

  • Re: Dynamic PopupControls won't show

    01-24-2007, 4:55 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    Please try your scenario with the recently available 10123 release of the Toolkit (and ASP.NET AJAX 1.0). If the problem persists, then please reply with a complete, simple, self-contained sample page that demonstrates the problem so that we can investigate the specific behavior you're seeing. Thank you!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Dynamic PopupControls won't show

    01-26-2007, 9:23 AM
    Answer
    • Member
      point Member
    • nowakr
    • Member since 01-04-2007, 11:22 PM
    • Posts 2

    I solved my problem.  Release 10123 of the Toolkit did not change anything.

    Instead of simply copying the innerHTML of one Panel to another, I did a javascript "appendChild" and passed in the control containing the PopupControl.  Then when I was finished using that control I did an "appendChild" back into the holding container.

    If anyone else has an issue related to mine, let me know and I can help you solve it.

Page 1 of 1 (3 items)