Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ export class GridBothSideToolbarPinningSampleComponent implements OnInit {

public pinLeft() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could just use the api instead of changing the props. The column has pin method API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

col.pinningPosition = ColumnPinningPosition.Start;
col.pinned = true;
});
}
public pinRight() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;
col.pinningPosition = ColumnPinningPosition.End;
col.pinned = true;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ export class HierarchicalGridBothSidePinningSampleComponent implements OnInit {

public pinLeft() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here pls

col.pinningPosition = ColumnPinningPosition.Start;
col.pinned = true;
});
}

public pinRight() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;
col.pinningPosition = ColumnPinningPosition.End;
col.pinned = true;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ export class TreeGridBothSidesPinningSampleComponent implements OnInit {

public pinLeft() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here pls

col.pinningPosition = ColumnPinningPosition.Start;
col.pinned = true;
});
}

public pinRight() {
this.grid1.selectedColumns().forEach((col: IgxColumnComponent) => {
col.pinned = false;
col.pinningPosition = ColumnPinningPosition.End;
col.pinned = true;
});
Expand Down