Hi,
I am using new RadControl ASP.NET for AJAX latest build.
I am testing the RadGrid and having problem.
Here is the scenario.
I do have MasterPage. The ScriptManager is inside masterpage.
I have a page that is using MasterPage.
The page contains a RadGrid and DataSource connect to SQL Server.
The RadGrid allows user to add, modify and delete. The Add / Modify button using RadWindow when its clicked.
when the user clicked "Modify" inside the grid (from one of the row), there will be a window pop up. Once the user update the button, the RadWindow will be closed and the AjaxManager.AjaxRequest('Rebind') is called. The AjaxRequest contains "RadGrid1.Rebind()" command.
Once the AjaxRequest is called, I got the following error:
-------------------------
Value cannot be null.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
----------------------------------
I have double checked the DataKeyValues in the Grid and its there. I dont know what is going on.
I tried so many things to work around it, but unable to do so. I tried using RadAjaxPanel, RadAjaxManager, PostBack when the window closed, etc, but all failed.
In summary,
- The page contains MasterPage that have ScriptManager
- The page contains RadGrid that will popup RadWindow.
- I have followed the sample from LiveDemo but failed as well.
Anyone can help me out ?
Thanks.
I am using new RadControl ASP.NET for AJAX latest build.
I am testing the RadGrid and having problem.
Here is the scenario.
I do have MasterPage. The ScriptManager is inside masterpage.
I have a page that is using MasterPage.
The page contains a RadGrid and DataSource connect to SQL Server.
The RadGrid allows user to add, modify and delete. The Add / Modify button using RadWindow when its clicked.
when the user clicked "Modify" inside the grid (from one of the row), there will be a window pop up. Once the user update the button, the RadWindow will be closed and the AjaxManager.AjaxRequest('Rebind') is called. The AjaxRequest contains "RadGrid1.Rebind()" command.
Once the AjaxRequest is called, I got the following error:
-------------------------
Value cannot be null.
Parameter name: key
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
----------------------------------
I have double checked the DataKeyValues in the Grid and its there. I dont know what is going on.
I tried so many things to work around it, but unable to do so. I tried using RadAjaxPanel, RadAjaxManager, PostBack when the window closed, etc, but all failed.
In summary,
- The page contains MasterPage that have ScriptManager
- The page contains RadGrid that will popup RadWindow.
- I have followed the sample from LiveDemo but failed as well.
Anyone can help me out ?
Thanks.