Class FileManagerColumn
Defines the columns settings for the each column in details view of filemanager component.
Inheritance
Namespace: Syncfusion.Blazor.FileManager
Assembly: Syncfusion.Blazor.dll
Syntax
public class FileManagerColumn : OwningComponentBase
Constructors
FileManagerColumn()
Declaration
public FileManagerColumn()
Properties
AllowResizing
Allows to disables or enables resize option of a particular column.
Declaration
public bool AllowResizing { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowSorting
Allows to disables or enables sorting option of a particular column. By default all columns are sortable.
Declaration
public bool AllowSorting { get; set; }
Property Value
Type |
---|
System.Boolean |
CustomAttributes
The CSS styles and attributes of the content cells of a particular column can be customized.
Declaration
public Dictionary<string, object> CustomAttributes { get; set; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Field
Defines the field name of column which is mapped with mapping name of DataSource.
The bounded columns can be sort, filter and group etc.,
The Field
name must be a valid JavaScript identifier,
the first character must be an alphabet and should not contain spaces and special characters.
Declaration
public string Field { get; set; }
Property Value
Type |
---|
System.String |
Format
It is used to change display value with the given format and does not affect the original data. Gets the format from the user which can be standard or custom.
Declaration
public string Format { get; set; }
Property Value
Type |
---|
System.String |
HeaderTemplate
Defines the column template as string or HTML element ID which is used to add customized element in the column header.
Declaration
public RenderFragment<object> HeaderTemplate { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment<System.Object> |
HeaderText
Defines the header text of column which is used to display in column header.
If HeaderText
is not defined, then field name value will be assigned to header text.
Declaration
public string HeaderText { get; set; }
Property Value
Type |
---|
System.String |
HeaderTextAlign
Define the alignment of column header which is used to align the text of column header.
Declaration
public TextAlign HeaderTextAlign { get; set; }
Property Value
Type |
---|
TextAlign |
HideAtMedia
Column visibility can change based on Media Queries. HideAtMedia accepts only valid Media Queries.
Declaration
public string HideAtMedia { get; set; }
Property Value
Type |
---|
System.String |
MaxWidth
Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
Declaration
public string MaxWidth { get; set; }
Property Value
Type |
---|
System.String |
MinWidth
Defines the minimum width of the column in pixels or percentage.
Declaration
public string MinWidth { get; set; }
Property Value
Type |
---|
System.String |
SortComparer
Gets or sets the custom sort comparer object to implement own sorting logic.
Declaration
public IComparer<object> SortComparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<System.Object> | Name of sort comparer object to be executed. The default value is null. |
Remarks
Custom sort comparer class should be implemented in the interface IComparer. Custom sort comparer can be used to modify the default sorting logic for details view in File Manager.
Template
Defines the column template that renders customized element in each cell of the column.
Declaration
public RenderFragment<object> Template { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment<System.Object> |
TextAlign
Defines the alignment of the column in both header and content cells.
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type |
---|
TextAlign |
Type
Defines the data type of the column.
Declaration
public string Type { get; set; }
Property Value
Type |
---|
System.String |
Width
Defines the width of the column in pixels or percentage.
Declaration
public string Width { get; set; }
Property Value
Type |
---|
System.String |
Methods
Dispose(Boolean)
Dispose unmanaged resources in the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task. |