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

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

3 Answers 28 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 15 Nov 2013, 05:56 PM
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";

3 Answers, 1 is accepted

Sort by
0
Austin
Top achievements
Rank 1
answered on 19 Nov 2013, 12:14 PM
I am having the same issue. I am using version 2013.3.1114.40
0
Antonio Stoilkov
Telerik team
answered on 20 Nov 2013, 08:58 AM
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.
0
Tim
Top achievements
Rank 1
answered on 20 Nov 2013, 04:22 PM
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.
Tags
PivotGrid
Asked by
Tim
Top achievements
Rank 1
Answers by
Austin
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Tim
Top achievements
Rank 1
Share this question
or