Async PostBack Errors - Unable to get value of the property 'style': object is null or undefined

4 posts, 0 answers
  1. Tim
    Tim avatar
    85 posts
    Member since:
    Aug 2008

    Posted 15 Nov 2013 Link to this post

    When any PostBack occurs (in this case, I am using a RadAjaxManager) and the PivotGrid is inside a UserControl.  I can find no other explanation for this because as soon as I take off the PivotGrid (there is also another RadGrid in the UserControl) everything works just fine.  The other thing is that the PivotGrid is inside of a RadPageView.

    The error is:
    "Unable to get value of the property 'style': object is null or undefined"

    The problem lies in the "_initializeHzScrollDiv" method which does not account for a null result from "this.get_hzScrollDiv":
    var l=this.get_hzScrollDiv(); <-- Error occurs later becuase this returns Null...
    var p=$telerik.isIE?a.PivotGrid.GetScrollBarWidth()+1:a.PivotGrid.GetScrollBarWidth();
    l.style.width=q.clientWidth+"px";
    l.style.height=p+"px";
    l.style.overflowX="scroll";
    l.style.overflowY="hidden";
  2. Austin
    Austin avatar
    17 posts
    Member since:
    Oct 2008

    Posted 19 Nov 2013 Link to this post

    I am having the same issue. I am using version 2013.3.1114.40
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 20 Nov 2013 Link to this post

    Hello Austin,

    The experienced error have not been reported before and based on your description it is hard to determine the cause of the problem. In such cases in order to further investigate the issue and provide a solution for it we will need a sample code that replicates the problem or a runnable project showing the unwanted behavior. You could upload the project on a public sharing site and paste the URL so we could download it from there.

    Regards,
    Antonio Stoilkov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Tim
    Tim avatar
    85 posts
    Member since:
    Aug 2008

    Posted 20 Nov 2013 Link to this post

    I believe this issue is solved.  This seemed to be an error in one of our custom UserControls which had some code which caused the whole ViewState to become unusable (no errors, just weird behavior).  We tracked down the issue and things have been working fine.
Back to Top