Home / Community & Support / Knowledge Base / RadControls for ASP.NET and ASP.NET AJAX / Scheduler / How to control the position of the modal advanced form

How to control the position of the modal advanced form

Article Info

Rating: 5

Article information

Article relates to

 RadScheduler

Created by

 Peter, Telerik

Last modified

 March 22, 2010

Last modified by

 Peter, Telerik



HOW TO

Control the position of the modal advanced form



DESCRIPTION

By default, the modal advanced form appears centered with respect to RadScheduler. You can override this behavior with either css or javascript.

SOLITION

css
<style type="text/css">
        /* Static advanced form positioning */
        .rsAdvancedEdit
        {
            top: 0px !important;
            left: 0px !important;      
        }
        .rsAdvDragCue
        {
            display: none !important;
        }
    </style>

The static approach has one limitation - it does not allow the form to be moved around through dragging.

Or,

javascript
<script type="text/javascript">
        // Dynamic advanced form positioning
        $telerik.$.popupDialog.prototype._positionForm = function() {
            // This will be called each time the form needs to be repositioned
            var $ = $telerik.$;
            $(this._targetElement).css({ top: "200px", left: "0px" });
        }
    </script>

The dynamic approach allows repositioning of the advanced form through dragging.




Comments

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.