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

RadWindow Position to center

4 Answers 1382 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bermo
Top achievements
Rank 1
Bermo asked on 24 Nov 2010, 01:18 PM
Hi,

Can you help me please.

I want my radwindow to open and positioned where the object opener is located in the screen.
I'm using it for my scheduler delete button.


Thanks,
Bermo

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Nov 2010, 11:28 AM
Hello,

Inorder to positioning the window,you can use either center() or MoveTo() .Try the sample code given below.

ClientCode:
function openwnd()
 {
   var wndw = radopen("http://www.google.com", "RadWindow1");
   wndw.moveTo(1, 1);
   return false;
  }


Thanks,
Princy.
0
Christopher Lee
Top achievements
Rank 1
answered on 25 Nov 2013, 06:03 PM
Thanks Princy!  This code worked for me to and got the window centered.  For some reason, my 

oWnd.Center()

Was not working.
0
Princy
Top achievements
Rank 2
answered on 21 Dec 2013, 09:05 AM
Hi Christopher Lee,

Some Client side API of RadWindowManager has changed, so please try with oWnd.center(). Please have a look into this help documentation and this changes and backward compatibility documentation.

Thanks,
Princy.
0
Christopher Lee
Top achievements
Rank 1
answered on 22 Dec 2013, 09:20 PM
Awesome!  That's very helpful... thanks again!!!

Best,

Chris
Tags
Window
Asked by
Bermo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Christopher Lee
Top achievements
Rank 1
Share this question
or