<eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource"
[sortable]="true" persistKey="{{persistKey}}"
[cellTextGenerator]="cellTextGenerator"
+ (onRowActivate)="showEditDialog($event)"
[stickyHeader]="true">
<eg-grid-toolbar-button [disabled]="!canCreate"
label="New {{idlClassDef.label}}" i18n-label [action]="createNew">
<eg-string #deleteSuccessString i18n-text
text="Delete of Floating Group succeeded"></eg-string>
-<eg-grid #grid idlClass="cfg" [dataSource]="gridDataSource" [sortable]="true">
+<eg-grid #grid idlClass="cfg" [dataSource]="gridDataSource" [sortable]="true"
+ (onRowActivate)="showEditDialog($event)">
<eg-grid-toolbar-button
label="New Floating Group" i18n-label (onClick)="createNew()">
</eg-grid-toolbar-button>
<eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
[sortable]="true" persistKey="{{persistKey}}" autoGeneratedColumnOrder="{{fieldOrder}}"
+ (onRowActivate)="showEditDialog($event)"
[filterable]="true" [stickyHeader]="true">
<eg-grid-toolbar-button [disabled]="!canCreate"
label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">
if (!this.dataSource) {
this.initDataSource();
}
-
- // TODO: pass the row activate handler via the grid markup
- this.grid.onRowActivate.subscribe(
- (idlThing: IdlObject) => this.showEditDialog(idlThing)
- );
}
checkCreatePerms() {