Hi,
I'm trying to set up a RadGrid with a static header and no scrolling. The entire grid is created in OnInit on the server.
When I run the page, I get the javascript error " 'cells' is null or not an object" on line 4 below (RadGrid script).
If I remove "_radGrid.ClientSettings.Scrolling.UseStaticHeaders = true;", everything works fine. Any suggestions on how to solve this?
// Pether
I'm trying to set up a RadGrid with a static header and no scrolling. The entire grid is created in OnInit on the server.
protected override void OnInit( EventArgs e ) |
{ |
base.OnInit( e ); |
_radGrid = new RadGrid |
{ |
Height = Unit.Pixel( 400 ), |
Width = Unit.Pixel( 400 ) |
}; |
_radGrid.MasterTableView.AllowPaging = false; |
_radGrid.ClientSettings.Scrolling.UseStaticHeaders = true; |
_radGrid.ClientSettings.Scrolling.SaveScrollPosition = true; |
_radGrid.ClientSettings.Scrolling.AllowScroll = true; |
_radGrid.NeedDataSource += RadGrid_NeedDataSource; |
... |
When I run the page, I get the javascript error " 'cells' is null or not an object" on line 4 below (RadGrid script).
var _108=this._owner.get_masterTableViewHeader().HeaderRow; | |
var _109=0; | |
if(_107){ | |
_109=Math.min(_108.cells.length,_107.cells.length); | |
} |
If I remove "_radGrid.ClientSettings.Scrolling.UseStaticHeaders = true;", everything works fine. Any suggestions on how to solve this?
// Pether