Optional
additionalOptional
autosizeOptional
bodyIgxColumnComponent
Optional
cellOptional
cellOptional
childrenOptional
classOptional
colOptional
colOptional
collapsibleOptional
collapsibleAllows you to define a custom template for expand/collapse indicator
IgxColumnGroupComponent
Optional
dataOptional
disableGets whether the hiding is disabled.
let isHidingDisabled = this.column.disableHiding;
IgxColumnComponent
Optional
disableGets whether the pinning is disabled.
let isPinningDisabled = this.column.disablePinning;
IgxColumnComponent
Optional
editableGets whether the column is editable.
Default value is false
.
let isEditable = this.column.editable;
IgxColumnComponent
Optional
errorReturns a reference to the validation error template.
let errorTemplate = this.column.errorTemplate;
Optional
expandedOptional
fieldOptional
filterReturns a reference to the filterCellTemplate
.
let filterCellTemplate = this.column.filterCellTemplate;
IgxColumnComponent
Optional
filterableOptional
filteringOptional
filtersGets the column filters
.
let columnFilters = this.column.filters'
IgxColumnComponent
Optional
formatterApplies display format to cell values in the column. Does not modify the underlying data.
Note: As the formatter is used in places like the Excel style filtering dialog, in certain
scenarios (remote filtering for example), the row data argument can be undefined
.
In this example, we check to see if the column name is Salary, and then provide a method as the column formatter
to format the value into a currency string.
columnInit(column: IgxColumnComponent) {
if (column.field == "Salary") {
column.formatter = (salary => this.format(salary));
}
}
format(value: number) : string {
return formatCurrency(value, "en-us", "$");
}
const column = this.grid.getColumnByName('Address');
const addressFormatter = (address: string, rowData: any) => data.privacyEnabled ? 'unknown' : address;
column.formatter = addressFormatter;
IgxColumnComponent
Optional
groupableOptional
hasGets a value indicating whether the summary for the column is enabled.
let hasSummary = this.column.hasSummary;
IgxColumnComponent
Optional
headerOptional
headerOptional
headerOptional
headerOptional
headerOptional
headerReturns a reference to the header template.
let headerTemplate = this.column.headerTemplate;
IgxColumnComponent
Optional
hiddenGets whether the column is hidden.
let isHidden = this.column.hidden;
IgxColumnComponent
Optional
idOptional
inlineReturns a reference to the inline editor template.
let inlineEditorTemplate = this.column.inlineEditorTemplate;
IgxColumnComponent
Optional
maxOptional
minOptional
nameOptional
parentSets/gets the parent column.
let parentColumn = this.column.parent;
this.column.parent = higherLevelColumn;
IgxColumnComponent
Optional
pinnedGets whether the column is pinned
.
let isPinned = this.column.pinned;
IgxColumnComponent
Optional
pipeOptional
resizableOptional
rowOptional
rowOptional
searchableOptional
selectableReturns if the column is selectable.
let columnSelectable = this.column.selectable;
IgxColumnComponent
Optional
selectedReturns if the column is selected.
let isSelected = this.column.selected;
IgxColumnComponent
Optional
sortGets the column sortStrategy
.
let sortStrategy = this.column.sortStrategy
IgxColumnComponent
Optional
sortableOptional
sortingOptional
styleOptional
summariesGets the column summaries
.
let columnSummaries = this.column.summaries;
IgxColumnComponent
Optional
summaryOptional
summaryReturns a reference to the summaryTemplate
.
let summaryTemplate = this.column.summaryTemplate;
IgxColumnComponent
Optional
titleOptional
visibleOptional
widthGets the width
of the column.
let columnWidth = this.column.width;
IgxColumnComponent
Returns a reference to the
bodyTemplate
.