| var managerC = $find("<%= RadWindowManagerSearch.ClientID %>"); |
| managerC.open("search.aspx", "RadWindowSearch"); |
Then I opened a second popup window from the first one and when returning the values, tried to find the first popup window with:
| GetRadWindow().get_windowManager().getWindowByName("RadWindowSearch"); |
It didn't work (returns null) beacuse it was finding as radwindow manager the first one rendered in the page (the one in the control in the master page) instead of the radwindow manager in Default.aspx
To solve this I removed the radwindowmanager (and kept the radwindows) from Default.aspx and now open the first popup with:
| var oWnd = radopen("search.aspx", "RadWindowSearch"); |
And to open other popups from RadWindowSearch:
| var parentPage = GetRadWindow().BrowserWindow; |
| var parentRadWindowManager = parentPage.GetRadWindowManager(); |
| var oWnd2 = parentRadWindowManager.open("clients_filter.aspx", "RadWindowSearchClients"); |
| window.setTimeout(function() { |
| oWnd2.setActive(true); |
| }, 0); |
Now I can return data from second popups to first popup (RadWindowSearch) by using the previous line:
| GetRadWindow().get_windowManager().getWindowByName("RadWindowSearch"); |
However, now I can't return data from the first popup (RadWindowSearch) to Default.aspx because it doesn't execute the OnClientClose function. This function was fired when using a radwindomanager in Default.aspx.
How can I now return data from the first popup to the page?
Or, how can I keep the radwindowmanager in Default.aspx and make the second popups find the first one (RadWindowSearch)? Is there a way to do get_windowManager() but by name?
Thank you,
On the scheduler demo page if you add an event using the details shown in the attached screen shot, you'll get a validation error when you try and save it saying that the start date should be before the end date.
However, if you correct this and leave the finish date for the "Recurrence" period as it is, then the event will be saved without any error (and without, naturally enough) any recurrences.
--
Stuart
| Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound |
| Dim strFarg As String = "" |
| strFarg = e.Appointment.DataItem("resurs_farg").ToString() |
| e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(strFarg) |
| e.Appointment.BorderColor = Color.Black |
| e.Appointment.BorderWidth = Unit.Pixel(1) |
| End Sub |