alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TreeGridDynamicPropertiesProvider

    Represents a class to Get / Set value of the underlying dynamic data object which is used by TreeGridView. This provider is used when the underlying data source is a dynamic object such as ExpandoObject or a custom DynamicObject implementation, mirroring the WPF TreeGrid TreeGridDynamicPropertiesProvider behavior.

    Inheritance
    object
    TreeGridPropertiesProvider
    TreeGridDynamicPropertiesProvider
    Implements
    IPropertyAccessProvider
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    TreeGridPropertiesProvider.Dispose()
    TreeGridPropertiesProvider.TreeGrid
    TreeGridPropertiesProvider.View
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.dll
    Syntax
    public class TreeGridDynamicPropertiesProvider : TreeGridPropertiesProvider, IPropertyAccessProvider, IDisposable

    Constructors

    TreeGridDynamicPropertiesProvider(SfTreeGrid, TreeGridView)

    Initializes a new instance of the TreeGridDynamicPropertiesProvider class with the specified SfTreeGrid and TreeGridView.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The TreeGridDynamicPropertiesProvider is not trim compatible")]
    public TreeGridDynamicPropertiesProvider(SfTreeGrid treeGrid, TreeGridView view)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid instance.

    TreeGridView view

    The TreeGridView instance.

    Methods

    Dispose(bool)

    Releases the resources used by the TreeGridDynamicPropertiesProvider.

    Declaration
    protected override void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    bool isDisposing
    Overrides
    TreeGridPropertiesProvider.Dispose(bool)

    GetFormattedValue(object, string)

    Gets the formatted value of the dynamic record for the given property.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GetFormattedValue method is not trim compatible")]
    [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The GetFormattedValue method relies on dynamic code generation")]
    public override object? GetFormattedValue(object record, string propertyName)
    Parameters
    Type Name Description
    object record

    The dynamic record.

    string propertyName

    The corresponding property name.

    Returns
    Type Description
    object

    Returns the formatted value of the property.

    Overrides
    TreeGridPropertiesProvider.GetFormattedValue(object, string)

    GetValue(object, string)

    Gets the value from the dynamic record.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GetValue method is not trim compatible")]
    [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The GetValue method relies on dynamic code generation")]
    public override object? GetValue(object record, string propertyName)
    Parameters
    Type Name Description
    object record

    The dynamic record.

    string propertyName

    The corresponding property name to get the value.

    Returns
    Type Description
    object

    Returns the value for the specified record and property name.

    Overrides
    TreeGridPropertiesProvider.GetValue(object, string)

    GetValue(object, string, bool)

    Gets the value from the dynamic record considering the column's value binding.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GetValue method is not trim compatible")]
    [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The GetValue method relies on dynamic code generation")]
    public override object? GetValue(object record, string propertyName, bool useBindingValue)
    Parameters
    Type Name Description
    object record

    The dynamic record.

    string propertyName

    The corresponding property name to get the value.

    bool useBindingValue

    Specifies whether the property value is reflected either from record or ValueBinding.

    Returns
    Type Description
    object

    Returns the property value for the specified record and property name.

    Overrides
    TreeGridPropertiesProvider.GetValue(object, string, bool)

    SetValue(object, string, object)

    Sets the value to the particular property in the given dynamic record.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The SetValue method is not trim compatible")]
    [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The SetValue method relies on dynamic code generation")]
    public override bool SetValue(object record, string propertyName, object value)
    Parameters
    Type Name Description
    object record

    The dynamic record.

    string propertyName

    The corresponding property name to set the value.

    object value

    The corresponding value to set to the given property.

    Returns
    Type Description
    bool

    Returns true if the value is set to the particular property in the given record; otherwise false.

    Overrides
    TreeGridPropertiesProvider.SetValue(object, string, object)

    SetValue(object, string, object, bool)

    Sets the value to the particular property considering the column's value binding.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The SetValue method is not trim compatible")]
    [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The SetValue method relies on dynamic code generation")]
    public override bool SetValue(object record, string propertyName, object value, bool useBindingValue)
    Parameters
    Type Name Description
    object record

    The dynamic record.

    string propertyName

    The corresponding property name to set the value.

    object value

    The corresponding value to set to the given property.

    bool useBindingValue

    Specifies whether the property value is reflected either from record or ValueBinding.

    Returns
    Type Description
    bool

    Returns true if the value is set to the particular property in the given record; otherwise false.

    Overrides
    TreeGridPropertiesProvider.SetValue(object, string, object, bool)

    Implements

    IPropertyAccessProvider
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved