Positioning/sizing the TrackChanges radWindow

5 posts, 0 answers
  1. Matt
    Matt avatar
    10 posts
    Member since:
    Oct 2010

    Posted 21 Apr 2011 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 25 Apr 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    10 posts
    Member since:
    Oct 2010

    Posted 27 Apr 2011 Link to this post

    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.
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 02 May 2011 Link to this post

    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.

  6. Sunil
    Sunil avatar
    231 posts
    Member since:
    Jan 2004

    Posted 03 Mar 2014 Link to this post

    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());
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017