This is a migrated thread and some comments may be shown as answers.

Window opening position keeps changing

1 Answer 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Britto
Top achievements
Rank 1
Britto asked on 10 May 2011, 08:49 PM
I have created a UserControl as a RadWindow and showing or closing the window manually from code behind.

The poroperties of the RadWindow are below 
this.Header = "Case Calendar";
this.RestoreMinimizedLocation = true;
this.ResizeMode = Telerik.Windows.Controls.ResizeMode.CanMinimize;
this.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.Manual;
this.Left = 330;
this.Top = 125;
this.IsRestricted = true;

 

But when every time I do the window.Show() the RadWindow is not repecting my Left and Top properties and opens in a different position. Moreover if I move the window and close it and open it again it is now opened in a different position where it was closed from.

But if I comment out the last line this.IsRestricted = true; then the RadWindow works as expected. When I first open it respects my Left and Top property settings and if I move it, close it and open it again it opens in the position where it was closed. But ofcourse now the RadWindow is not restricted to my boundaries and can be dragged of the screen, which gives a bad user experience.

Can you confirm this is a bug or is there a workaround.

thanks
britto


1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 12 May 2011, 11:28 AM
Hello Britto,

 This is an issue in the RadWindow's restriction logic. We logged the issue and we will fix it for the Q2 release.

Regards,
Miroslav Nedyalkov
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
Tags
Window
Asked by
Britto
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or