This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to get a handle to the column[s] currently being grouped when the grouping is set programmatically. It's easy to get ColumnGroupDescriptor (which is great btw) when grouping is done via the UI. As in:
When I programmatically add a group as in:
I don't get the convenient list of ColumnGroupDescriptor during the OfType conversion (just an empty list), GroupDescriptors contains only a basic GroupDescriptor which doesn't seem to contain much or include the column. Is there a way that I'm missing to acquire the ColumnGroupDescriptor when I do this OR do you have another way to get an easy handle to the column, or perhaps the column's UniqueName? Thank you.
I'm trying to get a handle to the column[s] currently being grouped when the grouping is set programmatically. It's easy to get ColumnGroupDescriptor (which is great btw) when grouping is done via the UI. As in:
IEnumerable<ColumnGroupDescriptor> groups = grid.GroupDescriptors.OfType<ColumnGroupDescriptor>(); foreach (ColumnGroupDescriptor group in groups) { //Do something... }When I programmatically add a group as in:
grid.GroupDescriptors.Add(new Telerik.Windows.Data.GroupDescriptor() { Member = "Category" });I don't get the convenient list of ColumnGroupDescriptor during the OfType conversion (just an empty list), GroupDescriptors contains only a basic GroupDescriptor which doesn't seem to contain much or include the column. Is there a way that I'm missing to acquire the ColumnGroupDescriptor when I do this OR do you have another way to get an easy handle to the column, or perhaps the column's UniqueName? Thank you.
