RadAlert @ the center of the page

4 posts, 0 answers
  1. Mugdha Aditya
    Mugdha Aditya avatar
    71 posts
    Member since:
    Mar 2010

    Posted 05 Sep 2011 Link to this post

    i want disply radalert popup @ the center of the screen.
    am calling radalert on page load.
    How to do that?
      <telerik:RadWindowManager ID="rdWindowManager" runat="server" EnableEmbeddedSkins="false" Skin="rdWindowsAlert" >
                                </telerik:RadWindowManager>
                                <telerik:RadAjaxManager ID="rdAjaxmanager" runat="server" >
                                    <AjaxSettings>
                                        <telerik:AjaxSetting>
                                            <UpdatedControls>
                                                <telerik:AjaxUpdatedControl ControlID="rdWindowManager" />
                                            </UpdatedControls>
                                        </telerik:AjaxSetting>
                                    </AjaxSettings>
                                </telerik:RadAjaxManager>

    RadAjaxManager rdAjaxmanager = (RadAjaxManager)this.Parent.FindControl("rdAjaxmanager");
    rdAjaxmanager.ResponseScripts.Add("radalert('Data is not available', 350, 150,'Model');");

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 05 Sep 2011 Link to this post

    Hi Mugdha,

    The RadWindowManager was recently improved by adding out of the box ability to call predefined dialogs from the server. To achieve what you need you should use the RadAlert server method - you can see a live demo below:

    http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx

     Kind regards,
    Svetlina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. Mugdha Aditya
    Mugdha Aditya avatar
    71 posts
    Member since:
    Mar 2010

    Posted 06 Sep 2011 Link to this post

    its not working with me .. :(


    Please check attched screenshot. so you will get idea.

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4609 posts

    Posted 08 Sep 2011 Link to this post

    Hi Mugdha,

    What I can see in the screenshot is that the skin of the RadWindow does not look as expected either. This leads me to believe there may be some global CSS rules that override the positioning of elements such as table, tr, td, ul, li, etc and they may also be affecting the RadWindow (a RadAlert is actually a RadWindow). Please try turning off all custom CSS and see if the issue persists.

    I also prepared a simple page that calls a RadAlert from the server and forces it to center again. You can also try this code and see if it works for you. It is based on the Executing a JavaScript function from server-side code help article. You can also try making the timeout larger.

    If the issue still persists I advise that you open a support ticket and send us a fully runnable reproduction demo so that we can debug it locally and see what is going on.


    Greetings,
    Marin
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top