Hello.
I have a masterpage with a RadAjaxManager where I have among other things a virtual scrolling grid like this: http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx
Works perfectly.
Then I have a content page with a WindowManager. The user can open two windows and add some data. When the windows close, I want to use an ajaxRequest to update the grid. I had this working perfectly before, but once I added the AjaxManager to the masterPage I had to remove it from the content page.
So I am now trying to contact the master page ajaxManager from the content page on windowClose:
What actually happens when the ClientClose function gets executed is that RadGrid2 (in the master page) is refreshed, while I am desperately trying to refresh RadGrid1 in the content page.
I've been reading the documentation: http://www.telerik.com/help/aspnet-ajax/ajxajaxmasterpage.html
(The link to the code snippet doesn't work: http://www.Telerik.com/asp-net-community/forums/forum-thread.aspx?b311D=ebgbb)
I'm really unsure what steps I need to take to get this working. The worst thing is I have a deadline today, so pretty please with sugar on top, somebody help me :)
Regards,
-DJ-
I have a masterpage with a RadAjaxManager where I have among other things a virtual scrolling grid like this: http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx
Works perfectly.
Then I have a content page with a WindowManager. The user can open two windows and add some data. When the windows close, I want to use an ajaxRequest to update the grid. I had this working perfectly before, but once I added the AjaxManager to the masterPage I had to remove it from the content page.
So I am now trying to contact the master page ajaxManager from the content page on windowClose:
function ClientClose() { |
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("ClientCloseLeagues"); |
} |
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest |
RadAjaxManager1.Alert("AjaxRequest raised from the " + e.Argument) ' works for "LoadMoreRecords" but not "ClientCloseLeagues" |
If e.Argument = "LoadMoreRecords" Then |
RadGrid2.PageSize = 15 + RadGrid2.PageSize |
RadGrid2.Rebind() |
ElseIf e.Argument = "ClientCloseLeagues" Then |
Dim RadGrid1 As RadGrid = Me.Page.FindControl("RadGrid1") |
RadGrid1.DataSource = Nothing |
RadGrid1.Rebind() |
End If |
End Sub |
What actually happens when the ClientClose function gets executed is that RadGrid2 (in the master page) is refreshed, while I am desperately trying to refresh RadGrid1 in the content page.
I've been reading the documentation: http://www.telerik.com/help/aspnet-ajax/ajxajaxmasterpage.html
(The link to the code snippet doesn't work: http://www.Telerik.com/asp-net-community/forums/forum-thread.aspx?b311D=ebgbb)
I'm really unsure what steps I need to take to get this working. The worst thing is I have a deadline today, so pretty please with sugar on top, somebody help me :)
Regards,
-DJ-