I suspect it might be a stupid question but I am rather beginning with both ASP.Net AJAX and Telerik...
In the online documentation, I can find lots of examples of popups triggered from the cloient side but not from the server side...
I would like to report to the User errors happening at the server side.
One way I was thinking of doing that was to have a popup window closed to start with.
When an error is caught
Everything seems fine but I don't know how to make my popup window... pop up!
Thanks
Eric
In the online documentation, I can find lots of examples of popups triggered from the cloient side but not from the server side...
I would like to report to the User errors happening at the server side.
One way I was thinking of doing that was to have a popup window closed to start with.
When an error is caught
- I store it in the database, get a key back
- change the NavigateUrl of my popup to a page with the error key passed on the url
- make the popup visible in modal mode
Everything seems fine but I don't know how to make my popup window... pop up!
Thanks
Eric
6 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 27 Feb 2009, 07:10 AM
Hi
Try using the RadWindow's VisibleOnPageLoad property and set it to true in the button' s server handler as shown below to
popup a window from server side
WindowManager.Windows[0].VisibleOnPageLoad = true; |
-Princy.
0
Hi Eric,
You can see how to do this in this documentation topic. Here are the basics steps:
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can see how to do this in this documentation topic. Here are the basics steps:
'Create a new window add it dynamically |
'The window will inherit the default settings of parent WindowManager |
Dim newWindow As New Telerik.Web.UI.RadWindow() |
'set its NavigateUrl property |
newWindow.NavigateUrl = "http://www.sitefinity.com" |
'add other properties, like modal, width, height, etc. |
newWindow.Modal = true |
newWindow.Width = Unit.Pixel(420) |
newWindow.Height = Unit.Pixel(220) |
'set its VisibleOnPageLoad property to show the Window |
newWindow.VisibleOnPageLoad = true |
'OPTION 1 |
'Add the newly created RadWindow to the RadWindowManager's collection |
'WindowManager.Windows.Add(newWindow) |
'OPTION 2 |
'since in the for ASP.NET AJAX version you can have a RadWindow outside of a RadWindowManager |
'as a separate control, you can add the newly created RadWindow directly to the form's Controls collection |
form1.Controls.Add(newWindow) |
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 1
answered on 27 Feb 2009, 09:50 AM
Princy, Georgi,
Thanks for your answers. I think I understand it would be fine if I postback my page.
What about background update, like opening a node in a big treeview that happens in the background.
I was thinking about having a window prepared but hidden on the front end and I was trying to think about a way to populate that window and make it visible.
I suppose I could use radalert(...). I saw this article about firing radalert from the client but the comments are ambiguous. I'll try option 2 and tell you how I am doing. :-)
Eric
Thanks for your answers. I think I understand it would be fine if I postback my page.
What about background update, like opening a node in a big treeview that happens in the background.
I was thinking about having a window prepared but hidden on the front end and I was trying to think about a way to populate that window and make it visible.
I suppose I could use radalert(...). I saw this article about firing radalert from the client but the comments are ambiguous. I'll try option 2 and tell you how I am doing. :-)
Eric
0
OK Eric,
Let us know how this goes. If you face any problems, it will be best to open a support ticket and send us your implementation so we can work directly on it.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Let us know how this goes. If you face any problems, it will be best to open a support ticket and send us your implementation so we can work directly on it.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 1
answered on 27 Feb 2009, 01:49 PM
Well, it was not going too well...
In an UpdatePanel update, there was nothing showing up.
In a Postback, I ended up with a javascript error message saying raderlert was not defined.
I guess you could have sorted that but it would not really help because I don't have a problem with full posts.
Now, I am looking at the possibility to "hide" an UpdatePanel with UpdateMode "Always".
In theory, I suppose I should be able to interact more easily that way.
Still working on it...
I'll post my result or questions if I don't get anywhere
:-)
In an UpdatePanel update, there was nothing showing up.
In a Postback, I ended up with a javascript error message saying raderlert was not defined.
I guess you could have sorted that but it would not really help because I don't have a problem with full posts.
Now, I am looking at the possibility to "hide" an UpdatePanel with UpdateMode "Always".
In theory, I suppose I should be able to interact more easily that way.
Still working on it...
I'll post my result or questions if I don't get anywhere
:-)
0
Eric
Top achievements
Rank 1
answered on 03 Mar 2009, 01:06 PM
I ended up using a User Control that contains a simple asp:Panel
It's not "sexy" but it will do the job for the time being...
It's not "sexy" but it will do the job for the time being...