RadConfirmm popup screen always position center

2 posts, 0 answers
  1. Vitaly
    Vitaly  avatar
    78 posts
    Member since:
    Aug 2011

    Posted 11 Sep 2019 Link to this post

      Hi All,

    I have a code in code behind where i am calling RadConfirm popup screen:

    RadWindowManager1.RadConfirm("Are you sure you want to Delete interest record(s) and ready to proceed?", "confirmCallbackFn", 300, 180, null, "Confirmation Message");

    <script type="text/javascript">

            function confirmCallbackFn(arg) {
                if (arg) //the user clicked OK

                    __doPostBack("<%=OkBtn.UniqueID %>", "");

                else {
                    __doPostBack("<%=CancelBtn.UniqueID %>", "");


    when i scroll all the way down and delete the record on the grid and click on link button, popup screen appear but all the way on top instead of the center when i scroll down. When screen is located up it is fine but when i scroll down to lets say delete last record on the screen popup window remains on the top.

    Please help.

    Thanks so much.

  2. Peter Milchev
    Peter Milchev avatar
    684 posts

    Posted 16 Sep 2019 Link to this post

    Hello Vitaly,

    The RadConfirm and RadAlert are designed to be absolutely positioned and the position is calculated dynamically with JavaScript. 

    Based on the provided code, it seems that the RadConfirm shows, and then the page is scrolled by the framework or with some custom code.

    What I can suggest is using the OnClientShow event of the RadWindowManager and based on some conditions, to call the .center() method for the confirm dialog so that it is recentered after the automatic scroll happens. 

        function OnClientShow(sender, args) {
            setTimeout(function () {

    Peter Milchev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top