• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 615
  • Last Modified:

ASP.Net how to limit a popup's drag

i have a popup window which Devx control (although i don't think this matters), is there a way to allow the popup to be dragged but limit the dragging to a certain range?  i tried iframe but it merely stop the drag completely.  thanks.
0
mmingfeilam
Asked:
mmingfeilam
1 Solution
 
Alan WarrenCommented:
Is it an Ajax modalpopup, if so there is property to reposition on window scroll?

The reason I mention that is because it had side effect, when dragging the popup too far it would snap back to centre screen.

repositionMode - Gets or sets a Sys.Extended.UI.ModalPopupRepositionMode object that determines whether the modal popup should be repositioned on window resize or on window scroll.
http://www.asp.net/ajaxlibrary/HOW%20TO%20Use%20the%20ModalPopup%20Control.ashx

Alan
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now