Detect boundary

4 posts, 2 answers
  1. yjh
    yjh avatar
    67 posts
    Member since:
    Aug 2007

    Posted 26 Apr 2011 Link to this post

    A "old" suggestion.

    Window should detect the browser boundary. Otherwise user can drag it out of broswer. After release mouse,  user can't drag the window back.
  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 27 Apr 2011 Link to this post

    Hello yjh,

    You can set IsRestricted property of the RadWindow to true. This will restrict moving the window only in the browser area. You can further set RestrictedMargin if you want to restrict the RadWindow in a smaller area. Hope this helps.

    Greetings,
    Boyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. yjh
    yjh avatar
    67 posts
    Member since:
    Aug 2007

    Posted 27 Apr 2011 Link to this post

    Sorry, I didn't notice IsRestricted property, it is good  now.

    But I find that when maximize RadWindow, the left and right border out of the browser even set IsRestricted to true.
    if set RestrictedMargin to new Thickness(5,0,5,0), RadWindow seems to be cut off left and right side.
  5. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 02 May 2011 Link to this post

    Hi yjh,

    This behavior is by design. When you maximize the RadWindow the right and left borders disappear. It is exactly the same as in Windows explorer. Only Windows 7 them keeps the borders by default. If you want to keep the borders you have to edit the template of the RadWindow.

    All the best,
    Boyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top