Class CollectionViewExtensions
Class that defines the extension methods of the collection view.
Inherited Members
Namespace: Syncfusion.Maui.Data
Assembly: Syncfusion.Maui.Data.dll
Syntax
public static class CollectionViewExtensions
Methods
ApplyFilters(CollectionViewAdv, ObservableCollection<IFilterDefinition>, string)
Applies the filters to the collection view, based on the given collection view, filter predicate and the column name.
Declaration
[RequiresDynamicCode("The ApplyFilters method relies on dynamic code generation")]
[RequiresUnreferencedCode("The ApplyFilters method is not trim compatible")]
public static void ApplyFilters(this CollectionViewAdv view, ObservableCollection<IFilterDefinition> filterPredicates, string columName)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionViewAdv | view | The collection view. |
| ObservableCollection<IFilterDefinition> | filterPredicates | The filterPredicates helps in create Filter Query. |
| string | columName | The column name for which filtering is to be applied. |
GetITypedListExpressionFunc(CollectionViewAdv, string)
Gets the ITypedList expression func for the given values.
Declaration
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "<Pending>")]
public static Expression<Func<string, object, object>> GetITypedListExpressionFunc(this CollectionViewAdv view, string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionViewAdv | view | The collection view. |
| string | propertyName | The property name for which the func is to be obtained. |
Returns
| Type | Description |
|---|---|
| Expression<Func<string, object, object>> | The ITypedList expression func for the given values. |
GetITypedListFunc(CollectionViewAdv, string)
Gets the ITypedList func for the given values.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GetPropertyDescriptor method is not trim compatible")]
[RequiresDynamicCode("The method GetITypedListFunc is not trimmable")]
public static Func<string, object, object> GetITypedListFunc(this CollectionViewAdv view, string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionViewAdv | view | The collection view. |
| string | propertyName | The property name for which the func is to be obtained. |
Returns
| Type | Description |
|---|---|
| Func<string, object, object> | The ITypedList func for the given values. |
IsITypedListSource(CollectionViewAdv)
Gets a boolean value indicating whether the given view is a ITypedListSource.
Declaration
public static bool IsITypedListSource(this CollectionViewAdv view)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionViewAdv | view | The collection view. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value indicating whether the given view is a ITypedListSource. |