Hi,
The project I've taken over uses all code behind for creating a grid. The solution calls for using column aggregates. According to other Telerik threads I found that I needed to set UseAllDataFields = true. Upon implementing this I noticed that grouping and paging did not work correctly. The problem is you only get the first page of results. Once you select another page, no records are returned. Filtering does not seem to be affected by this.
Unfortunately, I cannot post all the code (to spread out). However, here are the grid properties:
Any help would be appreciated.
Thanks.
Blair
The project I've taken over uses all code behind for creating a grid. The solution calls for using column aggregates. According to other Telerik threads I found that I needed to set UseAllDataFields = true. Upon implementing this I noticed that grouping and paging did not work correctly. The problem is you only get the first page of results. Once you select another page, no records are returned. Filtering does not seem to be affected by this.
Unfortunately, I cannot post all the code (to spread out). However, here are the grid properties:
RadGrid1.MasterTableView.EditFormSettings.EditColumn.ButtonType = GridButtonColumnType.PushButton;
RadGrid1.MasterTableView.UseAllDataFields =
true
;
RadGrid1.EnableViewState =
true
;
RadGrid1.EnableLinqExpressions =
false
;
RadGrid1.AutoGenerateColumns =
false
;
RadGrid1.MasterTableView.EnableColumnsViewState =
false
;
// because the column structure can change on Postback (new Layout)
RadGrid1.ClientSettings.ClientEvents.OnGridCreated =
"onGridCreated"
;
RadGrid1.ClientSettings.ClientEvents.OnCommand =
"onGridCommand"
;
RadGrid1.ClientSettings.ClientEvents.OnColumnResized =
"OnGridColumnResized"
;
RadGrid1.ClientSettings.ClientEvents.OnColumnSwapped =
"OnColumnSwapped"
;
RadGrid1.ClientSettings.ClientEvents.OnRowMouseOver =
"RowMouseOver"
;
RadGrid1.ClientSettings.ClientEvents.OnFilterMenuShowing =
"filterMenuShowing"
;
RadGrid1.FilterMenu.OnClientShowing =
"MenuShowing"
;
RadGrid1.CellSpacing = 2;
RadGrid1.ShowStatusBar =
false
;
RadGrid1.MasterTableView.TableLayout = GridTableLayout.Fixed;
RadGrid1.EnableHeaderContextMenu =
true
;
RadGrid1.MasterTableView.EditMode = GridEditMode.EditForms;
RadGrid1.MasterTableView.EditFormSettings.FormStyle.BackColor = System.Drawing.ColorTranslator.FromHtml(
"#FFFFDD"
);
RadGrid1.GroupingSettings.ShowUnGroupButton =
true
;
RadGrid1.ClientSettings.AllowDragToGroup =
true
;
RadGrid1.ClientSettings.AllowGroupExpandCollapse =
true
;
RadGrid1.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;
RadGrid1.GroupingSettings.CaseSensitive =
false
;
RadGrid1.FilterItemStyle.Wrap =
false
;
RadGrid1.AllowSorting =
true
;
RadGrid1.MasterTableView.AllowNaturalSort =
false
;
RadGrid1.AllowPaging =
true
;
RadGrid1.MasterTableView.PagerStyle.AlwaysVisible =
true
;
RadGrid1.ClientSettings.Scrolling.AllowScroll =
true
;
RadGrid1.ClientSettings.Scrolling.UseStaticHeaders =
true
;
RadGrid1.ClientSettings.Scrolling.SaveScrollPosition =
true
;
RadGrid1.ClientSettings.Resizing.AllowColumnResize =
true
;
RadGrid1.ClientSettings.Resizing.ClipCellContentOnResize =
false
;
RadGrid1.ClientSettings.Resizing.EnableRealTimeResize =
false
;
RadGrid1.ClientSettings.Resizing.ResizeGridOnColumnResize =
true
;
RadGrid1.ClientSettings.AllowColumnsReorder =
true
;
RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;
RadGrid1.ClientSettings.ReorderColumnsOnClient =
false
;
RadGrid1.ClientSettings.EnableRowHoverStyle =
true
;
RadGrid1.ClientSettings.Selecting.AllowRowSelect =
true
;
Any help would be appreciated.
Thanks.
Blair