I'm using a RadGrid with a relatively straightforward setup of DataBound columns, and a single Grid Expression that I set on page load like this:
I then load the data via DataSource = foo and DataBind();
The problem comes when I right click on the column header and select ungroup form the menu, it doesn't get ungrouped. I can group and ungroup with other columns, but the initial column does not ungroup, unless I use the menu to group by the column, and then ungroup it.
Is there a way around this behaviour?
if (!Page.IsPostBack){ //set up an initial group by base var baseExpression = new GridGroupByExpression(); var selectField = new GridGroupByField {FieldAlias = "Base", FieldName = "Dest_Name", HeaderValueSeparator = " "}; baseExpression.SelectFields.Add(selectField); var groupField = new GridGroupByField() {FieldName = "Dest_Name"}; baseExpression.GroupByFields.Add(groupField); Grid.MasterTableView.GroupByExpressions.Add(baseExpression);}I then load the data via DataSource = foo and DataBind();
The problem comes when I right click on the column header and select ungroup form the menu, it doesn't get ungrouped. I can group and ungroup with other columns, but the initial column does not ungroup, unless I use the menu to group by the column, and then ungroup it.
Is there a way around this behaviour?