Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/app/examples/grid-rowmove.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export class GridRowMoveComponent implements OnInit {
behavior: 'selectAndMove',
selectable: false, resizable: false,
cssClass: 'cell-reorder dnd',
excludeFromExport: true
excludeFromExport: true,
excludeFromColumnPicker: true,
excludeFromHeaderMenu: true,
excludeFromGridMenu: true
},
{ id: 'title', name: 'Title', field: 'title' },
{ id: 'duration', name: 'Duration', field: 'duration', sortable: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ export class CheckboxSelectorExtension implements Extension {
if (columnDefinitions && gridOptions) {
// dynamically import the SlickGrid plugin with requireJS
this.extensionUtility.loadExtensionDynamically(ExtensionName.checkboxSelector);
if (!this._extension) {
if (!this._extension) {
this._extension = new Slick.CheckboxSelectColumn(gridOptions.checkboxSelector || {});
}
const selectionColumn: Column = this._extension.getColumnDefinition();
selectionColumn.excludeFromExport = true;
selectionColumn.excludeFromColumnPicker = true;
selectionColumn.excludeFromGridMenu = true;
selectionColumn.excludeFromQuery = true;
selectionColumn.excludeFromHeaderMenu = true;
columnDefinitions.unshift(selectionColumn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export class RowDetailViewExtension implements Extension {
}
const selectionColumn: Column = this._extension.getColumnDefinition();
selectionColumn.excludeFromExport = true;
selectionColumn.excludeFromColumnPicker = true;
selectionColumn.excludeFromGridMenu = true;
selectionColumn.excludeFromQuery = true;
selectionColumn.excludeFromHeaderMenu = true;
columnDefinitions.unshift(selectionColumn);
Expand Down
8 changes: 7 additions & 1 deletion src/app/modules/angular-slickgrid/models/column.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ export interface Column {
/** Any inline editor function that implements Editor for the cell value or ColumnEditor */
editor?: any | ColumnEditor;

/** Default to false, which leads to exclude the column from the export? */
/** Default to false, which leads to exclude the column title from the Column Picker. */
excludeFromColumnPicker?: boolean;

/** Default to false, which leads to exclude the column from the export. */
excludeFromExport?: boolean;

/** Default to false, which leads to exclude the column title from the Grid Menu. */
excludeFromGridMenu?: boolean;

/** Defaults to false, which leads to exclude the field from the query (mostly a backend service query) */
excludeFromQuery?: boolean;

Expand Down