UpdatePanel ModalPopup Drag Resets Position After Postback

Last post 05-09-2008 3:10 PM by vgiambattista. 1 replies.

Sort Posts:

  • UpdatePanel ModalPopup Drag Resets Position After Postback

    05-09-2008, 9:56 AM
    • Loading...
    • rjbdetroit
    • Joined on 04-28-2008, 11:29 AM
    • Posts 31

    I have an UpdatePanel inside a ModalPopup. Inside the UpdatePanel I have a Datagrid and all works well. (Love Ajax and Partial Postback!)

    I then dediced to let the user drag the popupwindow. But, when the user drags the popup to a different location, then interacts with the DataGrid (e.g. Edit a record, sort the column, page navigation, etc.), the popup window repositions itself to the starting location after postback.

    Any idea on how to keep the popup in the location it was dragged after postback?

    Any info appreciated... Thanks in advance for your help.

  • Re: UpdatePanel ModalPopup Drag Resets Position After Postback

    05-09-2008, 3:10 PM
    • Loading...
    • vgiambattista
    • Joined on 01-13-2006, 2:40 PM
    • Atlanta, GA
    • Posts 91

    rjb,

    Your popup control has a ProfileBindings property element that will let you persist the position:

    <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server"

    TargetControlID="TextBox1"

    PopupControlID="Panel1">

    <ProfileBindings>

    <ajaxToolkit:ProfilePropertyBinding/>

    </ProfileBindings>

    </ajaxToolkit:PopupControlExtender>

     Shawn Burke has a good article that will get you started using the Profile Services: http://blogs.msdn.com/sburke/archive/2006/08/17/704571.aspx

     

    James

    James Ashley, Magenic Technologies
    (james.ashley.magenic@gmail.com)
Page 1 of 1 (2 items)