This is a migrated thread and some comments may be shown as answers.

[Solved] Sys.ArgumentNullException using RadGrid and RadAjaxPanel with FireFox

2 Answers 217 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 2
Eric asked on 27 May 2009, 08:56 PM
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...
<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

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 May 2009, 01:05 PM
Hello Eric,

I followed your scenario in order to replicate the issue but to no avail.
Please find attached a simple runnable application that demonstrates the needed approach. Give it a try and let me know if you have other questions or problems.

Additionally, for more information about Window editing, please review this live demo.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 2
answered on 01 Jun 2009, 12:34 PM
Hi, thanks for the reply. I fixed the issue. The problem was in my css, I had this:
* html .clearfix {height: 1%;}
When i removed it, the problem went away.

Thx

Eric

 

Tags
Ajax
Asked by
Eric
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Eric
Top achievements
Rank 2
Share this question
or