Hi all, I get the following error only with Firefox (IE works fine) when I use RadAjaxPanel with the RadGrid inside and RadWindow to edit. It only works for the first time after that I get this error and nothing happens.
Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: handler' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Here is a sample of what I am doing. I am using a MasterPage so this code is in asp:Content...
Any help would be greatly appreciated!
Thanks in advance!
Eric
Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: handler' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Here is a sample of what I am doing. I am using a MasterPage so this code is in asp:Content...
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function Insert() |
| { |
| window.radopen("Form.aspx", null); |
| return false; |
| } |
| function Update() |
| { |
| window.radopen("Form.aspx", null); |
| } |
| function RefreshGrid(arg) |
| { |
| $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest(arg); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="RadAjaxPanel1_AjaxRequest"> |
| <telerik:RadGrid ID="RadGrid1" EnableAJAX="false" runat="server" |
| OnItemCommand="RadGrid1_ItemCommand"> |
| <MasterTableView> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="insertButton" OnClientClick="return Insert();" runat="server">Insert</asp:LinkButton> |
| </CommandItemTemplate> |
| <Columns> |
| <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="Edit.gif" CommandName="InitUpdate" /> |
| <telerik:GridBoundColumn DataField="Name" HeaderText="Name" /> |
| <telerik:GridDropDownColumn DataSourceID="listDataSource" ListValueField="Id" ListTextField="Name" DataField="List" HeaderText="List" /> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
| //code behind |
| protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| switch (e.CommandName) |
| { |
| case "InitUpdate": |
| ScriptManager.RegisterStartupScript(this, Page.GetType(), "callback", "Update();", true); |
| break; |
| } |
| } |
Any help would be greatly appreciated!
Thanks in advance!
Eric