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

Positioning/sizing the TrackChanges radWindow

4 Answers 70 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 21 Apr 2011, 08:14 PM
In our site, we have a top menu bar that goes over content in the page. whenever we open radWindows we can set their position or set a restriction zone so that they will never get stuck under this menu. When a user with a small browser window (1024 x 768) clicks on the Track Changes button in radEditor, it is possible that the radWindow for track changes will open under the menu bar. This radWindow also cannot be closed by pressing the Esc key so the only option becomes reloading the page.

Is there any way to set the size, opening position, restriction zone or any other options that would prevent the radWindow for track changes to guarantee its position relative to the menu bar.

Thank You.

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Apr 2011, 03:02 PM
Hello Matt,

You can see how to apply a restriction zone for RadEditor's dialogs in the following KB article: Applying RestrictionZoneID to RadEditor dialogs.

Kind regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Matt
Top achievements
Rank 1
answered on 27 Apr 2011, 05:12 PM
Thank you for that link. Though it I found this one (http://www.telerik.com/support/kb/aspnet-ajax/editor/setting-dialog-pop-up-position.aspx) which was exactly what I was looking for.
0
Rumen
Telerik team
answered on 02 May 2011, 12:01 PM
Hi Matt,

Indeed, this is another and better way to achieve your scenario.

Best wishes,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
SUNIL
Top achievements
Rank 2
Iron
answered on 04 Mar 2014, 12:43 AM
There is another simple way to position the radwindow. JavaScript code for this is as given below.

If you have a button, on clicking of which a radalert window opens up, then you can use JavaScript code below to display the radalert 20 pixels above the clicked button with its left side aligned with left side of the button. You will need to include jQuery.js in your page. Code below is useful if you are displaying radwindow from client-side.

var pos =  $('#<%=btnSubmit.ClientID%>').offset();
var win =  radalert('<span style="font-size:medium;font-weight:bold;">Please input the minimum inventory  qauntity.</span>', 340, 180, 'Inventory', null, '');
win.moveTo(pos.left, pos.top -  20 - win.get_height());
Tags
Editor
Asked by
Matt
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Matt
Top achievements
Rank 1
SUNIL
Top achievements
Rank 2
Iron
Share this question
or