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

null is null, ids is null - FF

6 Answers 94 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
acm2001
Top achievements
Rank 2
acm2001 asked on 25 Jan 2009, 10:37 AM
I have been reading all the posts about this topic on the forums but cant find an answer.
I have the latest version of asp.net and latest version of telerik controls.

I am using a masterpage with a default page on top which then references one of 3 customcontrol pages depending on the tab selected. This is from the demo code on the Telerik site.

I am also utilising AJAX with the telerik radscriptmanager

In IE it seems to work fine, but in FF i get the following error:

ids is null
_applyUpdatePanelsRenderMode()(0)Telerik....a6cfd3594 (line 2083)
set_updatePanelsRenderMode()(0)Telerik....a6cfd3594 (line 2078)
(?)()()www.blog...japan.com (line 2067)
createCallback()()Telerik....a6cfd3594 (line 6)
createCallback()()Telerik....a6cfd3594 (line 6)
for(var i=0;i<ids.length;i++){




You can see the error on the website at http://www.bloglinkjapan.com
when you first go to the site all the AJAX etc works, when you click on the link HOME it breaks in FF. It looks like the controls are not loading before the page is ready.

I have tried many of the suggestions in the forum topics but cant fix this.

Any help appreciated
Thanks
Alan


6 Answers, 1 is accepted

Sort by
0
acm2001
Top achievements
Rank 2
answered on 27 Jan 2009, 10:49 AM
I have further researched this and have reduced my original page down to a test page that contains the following:

<%@ Page Language="VB"  AutoEventWireup="false" CodeFile="test5.aspx.vb" Inherits="test5" Title="" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ABC</title>
</head>
<body>
 <form id="form1" runat="server">
 <telerik:RadScriptManager ID="radScriptManager1" runat="server" />                        

<asp:hyperlink runat="server" id="hll2" navigateurl="/test5.aspx" text ="get this page again" >
</asp:hyperlink>
      
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"  />                     
                </UpdatedControls>
            </telerik:AjaxSetting>           
        </AjaxSettings>
    </telerik:RadAjaxManager>   
         
   <telerik:RadGrid ID="RadGrid1"  PageSize="30" AutoGenerateColumns="true"  runat="server" >                              
   </telerik:RadGrid>               
   
</form>
</body>
</html>

The vb side code is:

Partial Class test5
    Inherits System.Web.UI.Page

    Protected Sub radgrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        Dim scope As IObjectScope = BlogLinkVB.ObjectScopeProvider1.GetNewObjectScope()
        Dim result As Object = From p In scope.Extent(Of BlogLinkVB.Blog)() Select p
        RadGrid1.DataSource = result
    End Sub

End Class

That is the only code I have used. no master pages or other things at all.

In IE when i click on the hyperlink to get to this page everything works fine, no errors.
In FF when i first come to this page it works ok, but when i click on the link to get the page again the error "ids is null" comes up. At the moment it is coming up about 3 clicks out of 10.

Here is the exact error message from FF:

ids is null
_applyUpdatePanelsRenderMode()(0)Telerik....ac6335cbd (line 2083)
set_updatePanelsRenderMode()(0)Telerik....ac6335cbd (line 2078)
(?)()()Telerik....t9A%3D%3D (line 293)
createCallback()()Telerik....ac6335cbd (line 6)
createCallback()()Telerik....ac6335cbd (line 6)
for(var i=0;i<ids.length;i++){



Any thoughts?
Alan


0
Nikolay Rusev
Telerik team
answered on 28 Jan 2009, 10:40 AM
Hello Alan,

We are not aware of such issue. For your convenience I am attaching sample application replicating the scenario from your last post.

Please find the attached project.

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
acm2001
Top achievements
Rank 2
answered on 28 Jan 2009, 12:00 PM
Thanks
I loaded your code onto my server and ran it.
Annoyingly the error would not show up on your sample page or my original page.

I changed your populating of the datagrid to using openaccess as follows:

 Dim scope As IObjectScope = BlogLinkVB.ObjectScopeProvider1.GetNewObjectScope()
 Dim result2 As Object = From p In scope.Extent(Of BlogLinkVB.Blog)() Select p
 RadGrid1.DataSource = result2

Still the error would not come up.



I left it for 30 minutes and came back and got the error again on both your sample application and on my page using OpenAccess.
I could not get the error to come up with just a plain datagrid as in your sample.

When I did get the error to come up, it took me 10 clicks to get it to appear.

Could it be something to do with data not being loaded into the cache before the page is displayed?

The error is still prominent on my main application page where i have more data being loaded.

the issue is only in FF. I am using latest version of FF.

Thanks
Alan Margerison



0
Accepted
Nikolay Rusev
Telerik team
answered on 02 Feb 2009, 02:56 PM
Hello Alan,

I am afraid that I am still no able to replicate the issue locally. I suggest you create small runnable application which demonstrates the issue and send it to us via formal support ticket. Thus we'll be able to help you more on this.

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
acm2001
Top achievements
Rank 2
answered on 05 Feb 2009, 01:11 PM
thanks
i have tried everything and still getting the error

I will open a ticket as you suggested

thanks
alan
0
acm2001
Top achievements
Rank 2
answered on 06 Feb 2009, 10:45 AM
FF updated their browser today with a minor release and since then the error has totally gone.
cant understand why btu it is no longer there.

thank you and issue resolved.
Tags
Ajax
Asked by
acm2001
Top achievements
Rank 2
Answers by
acm2001
Top achievements
Rank 2
Nikolay Rusev
Telerik team
Share this question
or