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

RadAlert @ the center of the page

3 Answers 268 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mugdha Aditya
Top achievements
Rank 1
Mugdha Aditya asked on 05 Sep 2011, 01:25 PM

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');");

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 05 Sep 2011, 02:36 PM
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 >>

0
Mugdha Aditya
Top achievements
Rank 1
answered on 06 Sep 2011, 09:50 AM
its not working with me .. :(


Please check attched screenshot. so you will get idea.

0
Marin Bratanov
Telerik team
answered on 08 Sep 2011, 04:07 PM
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 >>

Tags
Window
Asked by
Mugdha Aditya
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Mugdha Aditya
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or