Skip to main content
.NET 6.0+

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.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public List<string> GroupLevels { get; }

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 platform-agnostic module’s constructor.

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.

See Also