I was just about to send a support ticket when I found the solution to a request for the GridView layout that I'd like to share:
The requested layout:
- The grid is grouped by one column by default
- The user can change the sort order of all columns
- The user can't change the grouping of the grid
Solution:
- Add the GroupByExpression for the column in code or through the designer
- RadGridView.EnableGrouping == true (if false, the grouping header is not shown)
- RadGridView.MasterGridViewTemplate.AllowDragToGroup == false (no more columns can be added to the grouping header)
- set the "AllowGroup" property of the column in the grouping header to "false" (the user can't remove the grouping column from the header)
Perhaps someone else finds this useful.
EDIT:
I missed, that the "column button" in the grouping header contains a "X" to remove the group. This Close Button is still enabled and the user can remove the group. Any suggestions?
The requested layout:
- The grid is grouped by one column by default
- The user can change the sort order of all columns
- The user can't change the grouping of the grid
Solution:
- Add the GroupByExpression for the column in code or through the designer
- RadGridView.EnableGrouping == true (if false, the grouping header is not shown)
- RadGridView.MasterGridViewTemplate.AllowDragToGroup == false (no more columns can be added to the grouping header)
- set the "AllowGroup" property of the column in the grouping header to "false" (the user can't remove the grouping column from the header)
Perhaps someone else finds this useful.
EDIT:
I missed, that the "column button" in the grouping header contains a "X" to remove the group. This Close Button is still enabled and the user can remove the group. Any suggestions?