Configures column collection in Gantt.
boolean
If allowEditing
set to false, then it disables editing of a particular column.
By default, all columns are editable.
Defaults to true
boolean
If allowFiltering
set to false, then it disables filtering option and filter bar element of a particular column.
By default, all columns are filterable.
Defaults to true
boolean
If allowReordering
set to false, then it disables reorder of a particular column.
By default, all columns can be reorder.
Defaults to true
boolean
If allowResizing
is set to false, it disables resize option of a particular column.
By default, all the columns can be resized.
Defaults to true
boolean
If allowSorting
set to false, then it disables sorting option of a particular column.
By default, all columns are sortable.
Defaults to true
ClipMode
Defines the overflow mode for cell content. The available modes are:
Clip
- Truncates the cell content when it overflows its area.Ellipsis
- Displays an ellipsis when the cell content overflows its area.EllipsisWithTooltip
- Displays an ellipsis when the cell content overflows its area, and shows a tooltip on hover over the ellipsis.Defaults to Syncfusion.EJ2.Grids.ClipMode.EllipsisWithTooltip
{ : }
The CSS styles and attributes of the content cells of a particular column can be customized.
Defaults to null
boolean
If disableHtmlEncode
is set to true, it disables HTML encoding for the content of specific columns.
Defaults to false
boolean
If displayAsCheckBox
is set to true, it displays the column value as a check box instead of Boolean value.
Defaults to false
IEditCell
Defines the IEditCell
object to customize default edit cell.
Defaults to {}
string
Defines the type of component used for editing the field.
Defaults to ‘stringedit’
string
Defines the field name of column which is mapped with mapping name of DataSource.
The field
name must be a valid JavaScript identifier,
the first character must be an alphabet and should not contain spaces and special characters.
IFilter
It is used to customize the default filter options for a specific columns.
Defaults to null
string
| NumberFormatOptions
| DateFormatOptions
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
number
and date
formats.
Defaults to null
Object
| Function
| IGanttCellFormatter
Defines the method which is used to achieve custom formatting from an external function. This function triggers before rendering of each cell.
Defaults to null
string
| Function
Defines the header template as string or HTML element ID which is used to add customized element in the column header.
Defaults to null
string
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.
Defaults to null
TextAlign
Define the alignment of column header which is used to align the text of column header.
Defaults to Syncfusion.EJ2.Grids.TextAlign.Left
string
Column visibility can change based on Media Queries
.
hideAtMedia
accepts only valid Media Queries.
Defaults to null
boolean
If isPrimaryKey
is set to true, considers this column as the primary key constraint.
Defaults to false
string
| number
Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
Defaults to null
string
| number
Defines the minimum width of the column in pixels or percentage.
Defaults to null
SortComparer
| string
Defines the custom sort comparer function.
string
| Function
Defines the column template that renders customized element in each cell of the column. It accepts either template string or HTML element ID.
Defaults to null
TextAlign
Defines the alignment of the column in both header and content cells.
Defaults to Syncfusion.EJ2.Grids.TextAlign.Left
Object
Defines validation rules for data before creating or updating records. The rules are used to ensure that data meets specific criteria before it is saved or updated.
Defaults to null
ValueAccessor
| string
Defines the method used to apply custom cell values from external function and display this on each cell rendered.
Defaults to null
boolean
If visible
is set to false, hides the particular column. By default, columns are displayed.
Defaults to true
string
| number
Defines the width of the column in pixels or percentage.
Defaults to null