Hi,
I am facing a strange situation with AjaxManager and, although the code works as expected, I receive everytime the following error:
JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key.
A simple code like the following raises the error, and usually all calls made to Ajax Manager from code behind are problematic.
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
If e.Argument = "Rebind" Then
RadGridItems.MasterTableView.SortExpressions.Clear()
RadGridItems.MasterTableView.GroupByExpressions.Clear()
RadGridItems.Rebind()
End If
I am using version 2014.1.225.45 and Visual Studio 2013 (updated). I found the following thread thas looks similar but I cannot find a proper solution.
http://www.telerik.com/forums/rad-ajaxmanager-issue-with-telerik-reportviewer-webforms-reportviewer-control
I also have noticed that ajaxifying some other controls (RadCombobox or buttons) are also causing the error:
<telerik:AjaxSetting AjaxControlID="BtnAddtoBasket">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="BtnAddtoBasket" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
Thanks.
I am facing a strange situation with AjaxManager and, although the code works as expected, I receive everytime the following error:
JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key.
A simple code like the following raises the error, and usually all calls made to Ajax Manager from code behind are problematic.
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
If e.Argument = "Rebind" Then
RadGridItems.MasterTableView.SortExpressions.Clear()
RadGridItems.MasterTableView.GroupByExpressions.Clear()
RadGridItems.Rebind()
End If
I am using version 2014.1.225.45 and Visual Studio 2013 (updated). I found the following thread thas looks similar but I cannot find a proper solution.
http://www.telerik.com/forums/rad-ajaxmanager-issue-with-telerik-reportviewer-webforms-reportviewer-control
I also have noticed that ajaxifying some other controls (RadCombobox or buttons) are also causing the error:
<telerik:AjaxSetting AjaxControlID="BtnAddtoBasket">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="BtnAddtoBasket" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
Thanks.