Current filter:
                                You should refresh the page.
                                  • If the parent page is at top-of-page the popup displays nicely in the center of the parent page as it should.  If the user is scrolled down a bit in the parent page the popup places itself at the same place which is now not WindowCenter.

                                    <dx:ASPxPopupControl ID="ASPxPopupControl6" runat="server" PopupHorizontalAlign="WindowCenter" ScrollBars="Vertical" PopupVerticalAlign="WindowCenter" Modal="True" ShowPageScrollbarWhenModal="True" EnableHierarchyRecreation="False" Width="650px" Height="850" HeaderStyle-ForeColor="White" CloseAction="None" ShowCloseButton="False"> <ContentCollection> <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server"> <sel:Selector ID="Selector1" runat="server" /> </dx:PopupControlContentControl> </ContentCollection> </dx:ASPxPopupControl>

                                    Please look at the attached video for a demonstration.
                                    How can I fix this?

                                    Thank You.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Dave,

                                The ASPxPopupControl.AutoUpdatePosition property automatically corrects a popup window's position on scrolling. So I suggest that you enable it and see if this helps. If not, send us a simple runnable project illustrating the problematic behavior. We will do our best to find a solution.

                                • Dave Cline 10.10.2019

                                  I have set the AutoUpdatePosition property and it works, but has a bad side affect - it scrolls the modal parent page to the top.  I need the parent page to not move - it needs to stay put.

                                  I have attached a sample project you can play with.  I also have an updated video showing the issue included in the zip file.

                                • Helen (DevExpress Support) 10.11.2019

                                  Hello Dave,

                                  Thank you for the project, I see the same effect on my side. It happens due to the ASP.NET specifics: when you select another item in your combo box, you send a postback (AutoPostBack = true). In addition to that, you are using UpdatePanel - so the postback request reloads this panel content, but without restoring the scroll position.

                                  A possible solution to this problem is to set Page.MaintainScrollPositionOnPostBack to true. Also, since you are reloading the UpdatePanel content only, move the popup controls inside the panel. I've attached a video illustrating how this approach works.

                                  However, you still may notice "jumping" effect. This effect occurs due to content re-drawing and caused by the same postback request. We cannot overcome this behavior at a control level. If you wish to avoid this effect, the only way is use client-side code only, without reloading content on a callback. Since your project is simplified and may not show all your implementation specifics, I cannot be sure that the client-side approach is suitable in your scenario. If you wish to try this approach, the following client-side members should be helpful: