This question is locked. New answers and comments are not allowed.
Do you have example code using GroupDescriptors in XAML and the codebehind which will expand or contract based on the GroupDescriptor's Member Property? Should the following code work together to achieve the expanding of only certain groups based upon values bound to the Grid, in the following - Member="PSEType" Thank you.
<telerik:RadGridView Name="rgvProductInfo" Loaded="rgvProductInfo_Loaded" ShowGroupPanel="True" AutoGenerateColumns="False" Grouped="gridView_Grouped" ItemsSource="{Binding PSEItemsCompletedList}" > <telerik:RadGridView.GroupDescriptors> <telerikData:GroupDescriptor Member="PSEType" DisplayContent="PSE Type"/> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.Columns>
private void rgvProductInfo_Loaded(object sender, System.Windows.RoutedEventArgs e) { var grped = rgvPSEProductInfo.ChildrenOfType<GridViewGroupRow>(); foreach (GridViewGroupRow groupRow in grped) { if (groupRow.Group.Key.ToString() == "General Info") groupRow.IsExpanded = true; } }
this.DataContext = _viewModel.PSEItemsCompletedList; private List<PSEItemsCompletedModel> __pseItemsCompletedList; public List<PSEItemsCompletedModel> PSEItemsCompletedList //list of items bound to grid { set { __pseItemsCompletedList = value; FirePropertyChanged("PSEItemsCompletedList"); } get { return __pseItemsCompletedList; } }