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

Radwindow is not movable

2 Answers 327 Views
Window
This is a migrated thread and some comments may be shown as answers.
Asif
Top achievements
Rank 1
Asif asked on 15 Jul 2011, 09:01 AM
Hello Support

I have an web application in which I am generating the pop-up based on certain conditions pop-up can be 2 ,3 or 4 or more
Now, my issue is that this each popup is not movable ie user cannot drag it from one place to another.
i only want to keep movable across browser

var wnd = radopen("url", "RadWindow" );
wnd.set_modal(false);
           
var oManager = GetRadWindowManager();
var oWindow = oManager.GetWindowByName("RadWindow");
oWindow.moveTo(30, 320);

Regards

Asif

2 Answers, 1 is accepted

Sort by
0
Asif
Top achievements
Rank 1
answered on 15 Jul 2011, 10:21 AM
It is working by set this

oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize);

but one more issue is
my vertical scrollbar is not visible but instead of that an white space bar is there
how to remove this white space?

Regards

Asif
0
Marin Bratanov
Telerik team
answered on 19 Jul 2011, 01:15 PM
Hi Asif,

When you use radopen() the RadWindow that is created takes the settings of the RadWindowManager. If you do not have the Move behavior declared there the RadWindow will not be movable. You have found one way of adding these behaviors, the other is directly in the markup. You can see this in action in the following online demo: http://demos.telerik.com/aspnet-ajax/window/examples/behaviors/defaultcs.aspx.


This while space may remain if you manually try to hide the overflow of the page after a modal RadWindow is shown. This is not needed, since a modal RadWindow automatically removes the scrollbars and shows them again when it is closed. Please examine your logic for such code an try removing it to see if it makes a difference. If you are still experiencing difficulties please open a support ticket and send us a very simple project that isolates this behavior so we can examine it locally and give you a more to the point answer.


Regards,
Marin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Window
Asked by
Asif
Top achievements
Rank 1
Answers by
Asif
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or