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

Refresh Scheduler on RadWindow Close

1 Answer 45 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 23 Jun 2009, 06:55 PM
I am trying to rebind (refresh) a scheduler when a RadWindow gets closed, the same way I do a RadGrid but it isn't working for the scheduler.  What am I doing wrong?

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
            <script type="text/javascript"
                function ShowApp(record) { 
                    window.radopen("AppWindow.aspx?record=" + record, "UserListDialog"); 
                    return false; 
                } 
 
                function closeAppWindow() { 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(); 
                }  
                 
            </script> 
        </telerik:RadCodeBlock>  
 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    <Windows> 
                    <telerik:RadWindow Skin="Sunset"  ID="UserListDialog" runat="server" Title="Dealership Application" Height="850px" 
                        Width="850px" Left="10px" ReloadOnShow="true" Modal="true"  ShowContentDuringLoad="False" OnClientClose="closeAppWindow"/> 
                </Windows> 
    </telerik:RadWindowManager> 
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                </telerik:RadAjaxManager> 

Code Behind:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As ObjectByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest 
        scheduler_Events.Rebind() 
    End Sub 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Jun 2009, 03:17 PM
Hello Shawn,

Please, try configuring RadAjaxManager to update RadSCheduler:
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings>      
    </telerik:RadAjaxManager> 


All the best,
Peter
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.
Tags
Scheduler
Asked by
Shawn
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or