Class FileManagerColumn
Inheritance
Namespace: Syncfusion.EJ2.FileManager
Assembly: Syncfusion.EJ2.dll
Syntax
public class FileManagerColumn : EJTagHelper
Constructors
FileManagerColumn()
Declaration
public FileManagerColumn()
Properties
AllowResizing
If allowResizing
set to false, it disables resize option of a particular column.
Declaration
public bool AllowResizing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
AllowSorting
If allowSorting
set to false, then it disables sorting option of a particular column.
By default all columns are sortable.
Declaration
public bool AllowSorting { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
CustomAttributes
The CSS styles and attributes of the content cells of a particular column can be customized.
Declaration
public object CustomAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
CustomFormat
Declaration
public object CustomFormat { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
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 | Description |
---|---|
System.String | The default value is "" |
Format
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
HeaderTemplate
Defines the column template as string or HTML element ID which is used to add customized element in the column header.
Declaration
public string HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
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 | Description |
---|---|
System.String | The default value is "" |
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 | Description |
---|---|
TextAlign | The default value is null |
HideAtMedia
Column visibility can change based on Media Queries
.
hideAtMedia
accepts only valid Media Queries.
Declaration
public string HideAtMedia { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
IsPrimaryKey
If isPrimaryKey
is set to true, considers this column as the primary key constraint.
Declaration
public bool IsPrimaryKey { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
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 | Description |
---|---|
System.String | The default value is "" |
MinWidth
Defines the minimum width of the column in pixels or percentage.
Declaration
public string MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
SortComparer
Defines the custom sort comparer function.
The sort comparer function has the same functionality like
Array.sort
sort comparer.
Declaration
public string SortComparer { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Template
Defines the column template that renders customized element in each cell of the column. It accepts either template string or HTML element ID.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TextAlign
Defines the alignment of the column in both header and content cells.
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign | The default value is TextAlign.Left |
Type
Defines the data type of the column.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Width
Defines the width of the column in pixels or percentage.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |