Hi,
How i make to open automatically the window when i make an insert into scheduler? i would you like that when i insert the record, after show a window, with the condition...if Then
My code:
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
<script type="text/javascript">
function ShowPage()
{
window.radopen("test.aspx", "UserListDialog");
return false;
}
</script>
</telerik:RadScriptBlock>
Code server side Radscheduler insert
How i make to open automatically the window when i make an insert into scheduler? i would you like that when i insert the record, after show a window, with the condition...if Then
My code:
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
<script type="text/javascript">
function ShowPage()
{
window.radopen("test.aspx", "UserListDialog");
return false;
}
</script>
</telerik:RadScriptBlock>
Code server side Radscheduler insert
Dim openWindow As String |
openWindow = "<script type='text/javascript'>window.onload = ShowPage</script> " |
ClientScript.RegisterStartupScript(Me.GetType(), "ShowPage", openWindow ) |
4 Answers, 1 is accepted
0
Hello Rubihno,
As far as I can see from your code, you have a declared RadWindow with ID UserListDialog. If so, you can easily show it from the server by setting its VisibleOnPageLoad property to true. For your convenience I attached a sample demo.
Best wishes,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
As far as I can see from your code, you have a declared RadWindow with ID UserListDialog. If so, you can easily show it from the server by setting its VisibleOnPageLoad property to true. For your convenience I attached a sample demo.
Best wishes,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Rubihno
Top achievements
Rank 1
answered on 09 Dec 2008, 11:08 AM
Thanks a lot, it is very simple!
0

Rubihno
Top achievements
Rank 1
answered on 09 Dec 2008, 02:45 PM
Hi, i have a problem to use different window.
In my application i use a -> radwindow
radajaxmanager
example of radwindow:
In the radscheduler_appointmentinsert i have:
Code in .aspx page
I have problem to show the two different windows, for example i can show only radwindowmanger and the radajaxmanager don't run.
In my application i use a -> radwindow
radajaxmanager
example of radwindow:
In the radscheduler_appointmentinsert i have:
RadAjaxManager1.ResponseScripts.Add("radalert('test!<br><br> " & e.Appointment.Resources.GetResourceByType("room").Text & "<br> <br><br> " + test + "', 410, 250);") |
adWindowManager1.Windows(1).VisibleOnPageLoad = True |
Code in .aspx page
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxSettingCreating="RadAjaxManager1_AjaxSettingCreating" |
OnAjaxRequest="RadAjaxManager1_AjaxRequest"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="Radscheduler"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> |
<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RdPrenotazioni" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadWindowManager EnableViewState="false" Visible="true" Height="330px" Width="545px" |
ID="RadWindowManager1" Modal="true" VisibleOnPageLoad="false" Style="z-index: 7001" ReloadOnShow="true" ShowContentDuringLoad="false" |
runat="server" Behavior="Minimize,Maximize,Close,Move" Skin="Sunset" VisibleStatusbar="false" |
Overlay="true"> |
<Windows> |
<telerik:RadWindow runat="server" ID="RadWindowInstance" /> |
<telerik:RadWindow ID="wnd" runat="server" NavigateUrl="RichiestaAttrezzature.aspx"> |
</telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
I have problem to show the two different windows, for example i can show only radwindowmanger and the radajaxmanager don't run.
0
Hello Rubihno,
I tested the provided code but after I correctly closed the <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
tag in the markup and tested the project I received a javascript error for an undefined object and only the RadWindow was shown. In order to fix the error you should show the radalert by using the Sys.Application.add_load syntax as shown below:
You can find a demonstration of the suggested approach in this KB article - the last explained case in the RadControls for ASP.NET AJAX section is exactly the same as yours.
Sincerely yours,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I tested the provided code but after I correctly closed the <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
tag in the markup and tested the project I received a javascript error for an undefined object and only the RadWindow was shown. In order to fix the error you should show the radalert by using the Sys.Application.add_load syntax as shown below:
RadAjaxManager1.ResponseScripts.Add("Sys.Application.add_load(function(){radalert('test!<br><br>');});"); |
You can find a demonstration of the suggested approach in this KB article - the last explained case in the RadControls for ASP.NET AJAX section is exactly the same as yours.
Sincerely yours,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.