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

Declaration

public List<string> GroupLevels { get; }
Public ReadOnly Property GroupLevels As List(Of String)

Property Value

Type Description
System.Collections.Generic.List<String>

A <String,> of strings that are used to split groups into subgroups.

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