Class DataSourceSettings
Provides data source and mapping configuration for organizational chart data binding.
Inherited Members
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public class DataSourceSettings : DiagramElement
Constructors
DataSourceSettings()
Initializes a new instance of the DataSourceSettings class.
Declaration
public DataSourceSettings()
Fields
AdditionalDataPathsProperty
Identifies the AdditionalDataPaths bindable property.
Declaration
public static readonly BindableProperty AdditionalDataPathsProperty
Field Value
| Type |
|---|
| BindableProperty |
DataSourceProperty
Identifies the DataSource bindable property.
Declaration
public static readonly BindableProperty DataSourceProperty
Field Value
| Type |
|---|
| BindableProperty |
DoBindingProperty
Identifies the DoBinding bindable property.
Declaration
public static readonly BindableProperty DoBindingProperty
Field Value
| Type |
|---|
| BindableProperty |
IdProperty
Identifies the Id bindable property.
Declaration
public static readonly BindableProperty IdProperty
Field Value
| Type |
|---|
| BindableProperty |
IsExpandedPathProperty
Identifies the IsExpandedPath bindable property.
Declaration
public static readonly BindableProperty IsExpandedPathProperty
Field Value
| Type |
|---|
| BindableProperty |
LayoutInfoMappingProperty
Identifies the LayoutInfoMapping bindable property.
Declaration
public static readonly BindableProperty LayoutInfoMappingProperty
Field Value
| Type |
|---|
| BindableProperty |
LeafLayoutInfoProperty
Identifies the LeafLayoutInfo bindable property.
Declaration
public static readonly BindableProperty LeafLayoutInfoProperty
Field Value
| Type |
|---|
| BindableProperty |
ParentIdProperty
Identifies the ParentId bindable property.
Declaration
public static readonly BindableProperty ParentIdProperty
Field Value
| Type |
|---|
| BindableProperty |
RootProperty
Identifies the Root bindable property.
Declaration
public static readonly BindableProperty RootProperty
Field Value
| Type |
|---|
| BindableProperty |
WriteBackExpandStateProperty
Identifies the WriteBackExpandState bindable property.
Declaration
public static readonly BindableProperty WriteBackExpandStateProperty
Field Value
| Type |
|---|
| BindableProperty |
Properties
AdditionalDataPaths
Gets or sets extra item property names copied into each record's fields object for custom
JavaScript use. Only mapped values ever cross the bridge — whole items are never serialized.
Declaration
public IList AdditionalDataPaths { get; set; }
Property Value
| Type |
|---|
| IList |
DataSource
Gets or sets the collection whose items are projected into the organizational chart. When the collection implements INotifyCollectionChanged, changes are tracked and re-laid out automatically; items implementing INotifyPropertyChanged are tracked per item.
Declaration
public IEnumerable? DataSource { get; set; }
Property Value
| Type |
|---|
| IEnumerable |
DoBinding
Gets or sets a callback invoked once per data item while its node is being generated (EJ2
doBinding). The node's Id and Data identify the item.
The generated node's Annotations (text), BackgroundColor and
IsExpanded are pre-filled from the mappings and may be changed here; those three are
carried into the generated node.
Declaration
public Action<Node, object?>? DoBinding { get; set; }
Property Value
| Type |
|---|
| Action<Node, object> |
Id
Gets or sets the item property holding the item's unique ID. Required when DataSource is set.
Declaration
public string? Id { get; set; }
Property Value
| Type |
|---|
| string |
IsExpandedPath
Gets or sets the optional item property holding the node's initial expand state (bool). Missing/false-negatives default to expanded.
Declaration
public string? IsExpandedPath { get; set; }
Property Value
| Type |
|---|
| string |
LayoutInfoMapping
Gets or sets the per-item layout-info property mapping. Optional.
Declaration
public LayoutInfoMapping? LayoutInfoMapping { get; set; }
Property Value
| Type |
|---|
| LayoutInfoMapping |
LeafLayoutInfo
Gets or sets the arrangement applied to managers whose children are all leaves. Role is ignored here. Optional.
Declaration
public TreeInfo? LeafLayoutInfo { get; set; }
Property Value
| Type |
|---|
| TreeInfo |
ParentId
Gets or sets the item property holding the parent's ID. A null or empty value means the item is a root. Required when DataSource is set.
Declaration
public string? ParentId { get; set; }
Property Value
| Type |
|---|
| string |
Root
Gets or sets the Id value of the item that is the root of the chart (EJ2
dataSourceSettings.root). When empty, Root is used instead.
Declaration
public string? Root { get; set; }
Property Value
| Type |
|---|
| string |
WriteBackExpandState
Gets or sets a value indicating whether a user's expand/collapse toggle is written back to the data item's IsExpandedPath property. Defaults to false.
Declaration
public bool WriteBackExpandState { get; set; }
Property Value
| Type |
|---|
| bool |