|
13 | 13 | <igx-switch (change)='onRowChange()' style="padding-left: 10px"> Bottom Row Pinning toggle</igx-switch> |
14 | 14 | <igx-switch (change)='onChange()' style="padding-left: 10px"> Right Column Pinning toggle</igx-switch> |
15 | 15 | </div> |
16 | | - <igx-grid [allowFiltering]='true' [primaryKey]='"ID"' [pinning]="pinningConfig" [showToolbar]='true' [columnPinning]='true' #grid1 [data]="data" [width]="'800px'" [height]="'500px'" [rowSelectable]="false"> |
| 16 | + <igx-grid [allowFiltering]='true' [primaryKey]='"ID"' [paging]="true" [pinning]="pinningConfig" [showToolbar]='true' [columnPinning]='true' #grid1 [data]="data" [width]="'800px'" [height]="'500px'" [rowSelectable]="false"> |
17 | 17 | <igx-column width='70px' [filterable]='false'> |
18 | 18 | <ng-template igxCell let-cell="cell" let-val> |
19 | 19 | <igx-icon class="pin-icon" (mousedown)="togglePining(cell.row, $event)"> |
|
32 | 32 | </igx-grid> |
33 | 33 | </div> |
34 | 34 | <div class="sample-column"> |
35 | | - <igx-hierarchical-grid [showExpandAll]='true' [data]="hierarchicalData" [pinning]="pinningConfig" [showToolbar]='true' [columnPinning]='true' [columnHiding]='true' [width]="'800px'" [height]="'500px'" [rowSelectable]="true" #hGrid> |
| 35 | + <igx-hierarchical-grid #hGrid [width]="'800px'" [height]="'600px'" [paging]="true" [primaryKey]='"ID"' [rowEditable]="true" [allowFiltering]='true' |
| 36 | + [showExpandAll]='true' [data]="hierarchicalData" [pinning]="pinningConfig" [showToolbar]='true' [columnPinning]='true' [columnHiding]='true' [rowSelectable]="true" > |
| 37 | + <ng-template igxToolbarCustomContent> |
| 38 | + <app-grid-search-box [grid]="hGrid" [style.width]="'400px'"></app-grid-search-box> |
| 39 | + </ng-template> |
36 | 40 | <igx-column width='70px' [filterable]='false'> |
37 | 41 | <ng-template igxCell let-cell="cell" let-val> |
38 | 42 | <igx-icon class="pin-icon" (mousedown)="togglePining(cell.row, $event)"> |
39 | 43 | {{cell.row.pinned ? 'lock' : 'lock_open'}} |
40 | 44 | </igx-icon> |
41 | 45 | </ng-template> |
42 | 46 | </igx-column> |
43 | | - <igx-column *ngFor="let c of hColumns" [sortable]="true" [field]="c.field" [header]="c.field" [width]="c.width" [pinned]='c.pinned' [groupable]='c.groupable' [editable]="true"> |
| 47 | + <igx-column width='100px' [filterable]='false'> |
| 48 | + <ng-template igxCell let-cell="cell" let-val> |
| 49 | + <button (click)="hGrid.deleteRow(cell.cellID.rowID)">Delete</button> |
| 50 | + </ng-template> |
| 51 | + </igx-column> |
| 52 | + <igx-column *ngFor="let c of hColumns" [sortable]="true" [field]="c.field" [header]="c.field" [width]="c.width" [pinned]='c.pinned' [groupable]='c.groupable' > |
44 | 53 | </igx-column> |
45 | 54 | <igx-row-island [key]="'childData'" [autoGenerate]="true" [rowSelectable]='true' [allowFiltering]='true' > |
46 | 55 | <igx-row-island [key]="'childData'" [autoGenerate]="true" [rowSelectable]='true' [allowFiltering]='true'></igx-row-island> |
|
0 commit comments