ModelEditorGroupingHelper.GroupLevels Property
Gets the predefined list of strings that are used to split groups into subgroups in the Model Editor‘s Nodes Tree when the ModelEditorGroupingHelper.AllowSplitByGroupLevels property is set to true.
Namespace: DevExpress.ExpressApp.ModelEditor
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
List<String> | A List<String> of strings that are used to split groups into subgroups. |
Remarks
By default, the GroupLevels
list includes:
"DevExpress"
"ExpressApp.Win"
"ExpressApp.Web"
"ExpressApp"
"SystemModule"
"Persistent"
"BaseImpl"
"ReportsV2"
"Reports"
"Security"
"Validation"
"PivotChart"
"FileAttachments"
"ScriptRecorder"
"Notifications"
"Kpi"
"PivotGrid"
"Scheduler"
"TreeListEditors"
"Xpo"
"DC"
"EF"
You can add more values to this list to provide grouping for your custom nodes, using the following code in the module’s constructor implemented in the MySolution.Module\Module.cs file.
using DevExpress.ExpressApp.ModelEditor;
// ...
public sealed partial class MySolutionModule : ModuleBase {
public MySolutionModule () {
InitializeComponent();
ModelEditorGroupingHelper.Instance.AllowSplitByGroupLevels = true;
ModelEditorGroupingHelper.Instance.GroupLevels.Add("MySolution.Module.BusinessObjects.Planning");
ModelEditorGroupingHelper.Instance.GroupLevels.Add("MySolution.Module.BusinessObjects.Marketing");
}
// ...
}
You can also use one of the ModelEditorGroupingHelper.SplitGroupPath method overloads to split group paths in your custom delegate registered using the ModelEditorGroupingHelper.RegisterNodeGroupPathDelegate method.