Hi,
1) I have a master page that contains the following controls:
<telerik:RadAjaxManager id="RadAjaxManager" runat="server" EnablePageMethods="True" />
<telerik:RadAjaxLoadingPanel id="DefaultLoadingPanel" runat="server" />
2) My content page contains:
<telerik:RadPanelItem Value="CourseControl" Text="Courses"><ContentTemplate>...</ContentTemplate></telerik:RadPanelItem>
<telerik:RadAjaxManagerProxy id="CourseRadAjaxManagerProxy" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="CourseGrid">
<UpdateControls>
<telerik:AjaxUpdateControl ControlID="CourseGrid" LoadingPanelID="DefaultLoadingPanel" />
</UpdateControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
3) My User Control known as CourseControl in the above RadPanelItem contains the following control:
<UC1:CourseGrid id="CourseGridControl" runat="server">
4) My CourseGrid user control which is a generic grid used by multiple user controls has a Javascript function to open a popup window (AddEditCourse.aspx) which helps users manage the courses.
The problem is when a new course is added to the database or an existing course is updated I am unable to refresh the grid so that the changes be visible to the user. In the CloseAndRebind() function located in the popup window, I use top.location.href = top.location.href. This refreshes the grid but it refreshes the entire page while I only want to refresh only the grid.
Complete Root: MasterPage->Couses.aspx->CoursesUC.ascx->CourseGrid.ascx->AddEditCourse.aspx
Can someone please point me in the right direction? I would appreciate if you could provide me some code sample.
Thank you in advance.
Luc
1) I have a master page that contains the following controls:
<telerik:RadAjaxManager id="RadAjaxManager" runat="server" EnablePageMethods="True" />
<telerik:RadAjaxLoadingPanel id="DefaultLoadingPanel" runat="server" />
2) My content page contains:
<telerik:RadPanelItem Value="CourseControl" Text="Courses"><ContentTemplate>...</ContentTemplate></telerik:RadPanelItem>
<telerik:RadAjaxManagerProxy id="CourseRadAjaxManagerProxy" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="CourseGrid">
<UpdateControls>
<telerik:AjaxUpdateControl ControlID="CourseGrid" LoadingPanelID="DefaultLoadingPanel" />
</UpdateControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
3) My User Control known as CourseControl in the above RadPanelItem contains the following control:
<UC1:CourseGrid id="CourseGridControl" runat="server">
4) My CourseGrid user control which is a generic grid used by multiple user controls has a Javascript function to open a popup window (AddEditCourse.aspx) which helps users manage the courses.
The problem is when a new course is added to the database or an existing course is updated I am unable to refresh the grid so that the changes be visible to the user. In the CloseAndRebind() function located in the popup window, I use top.location.href = top.location.href. This refreshes the grid but it refreshes the entire page while I only want to refresh only the grid.
Complete Root: MasterPage->Couses.aspx->CoursesUC.ascx->CourseGrid.ascx->AddEditCourse.aspx
Can someone please point me in the right direction? I would appreciate if you could provide me some code sample.
Thank you in advance.
Luc