I want to create a RadGrid that have databound items and look like this:
-------------------------------------------------------------
Heading1 Heading2 Heading3 …
Row1Cell1 Row1Cell3 Row1Cell3
Row1Cell4_That_should_span_all_columns
Row2Cell1 Row2Cell3 Row2Cell3
Row2Cell4_That_should_span_all_columns
….
-------------------------------------------------------------
I also want to enable sort on the headings (except for the cell that span all columns).
Hi,
I have used Self Referencing Hierarchy successfully with Telerik.Web.UI.dll Version: 2008.2.723.20.
As my organization moved to dot net 3.5, I have tried using Telerik.Web.UI.dll Version:2008.2.1001.35. But I kept getting an error with the following line in Page_Load:
RadGrid1.MasterTableView.FilterExpression = "ParentID = 0";
Error says:
No property or field 'ParentID' exists in type 'DataRowView'
If I don't set the FilterExpression, Self Hierarchy doesn't work. Can someone help me with this ASAP as this is an urgent requirement?
Regards,
Nanda Kishore
| 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; |
| ... |
| var _108=this._owner.get_masterTableViewHeader().HeaderRow; | |
| var _109=0; | |
| if(_107){ | |
| _109=Math.min(_108.cells.length,_107.cells.length); | |
| } |