@@ -900,7 +900,7 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy {
900
900
// filtering data with local dataset will not always show correctly unless we call this updateRow/render
901
901
// also don't use "invalidateRows" since it destroys the entire row and as bad user experience when updating a row
902
902
// see commit: https://github.com/ghiscoding/aurelia-slickgrid/commit/8c503a4d45fba11cbd8d8cc467fae8d177cc4f60
903
- if ( gridOptions && gridOptions . enableFiltering && ! gridOptions . enableRowDetailView ) {
903
+ if ( gridOptions ? .enableFiltering && ! gridOptions . enableRowDetailView ) {
904
904
if ( args ?. rows && Array . isArray ( args . rows ) ) {
905
905
args . rows . forEach ( ( row : number ) => grid . updateRow ( row ) ) ;
906
906
grid . render ( ) ;
@@ -1215,12 +1215,19 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy {
1215
1215
return options ;
1216
1216
}
1217
1217
1218
- /** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
1218
+ /** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource & RowDetail ) */
1219
1219
private preRegisterResources ( ) {
1220
1220
this . _registeredResources = this . gridOptions . registerExternalResources || [ ] ;
1221
1221
1222
1222
// Angular-Slickgrid requires RxJS, so we'll register it as the first resource
1223
1223
this . registerRxJsResource ( new RxJsResource ( ) as RxJsFacade ) ;
1224
+
1225
+ if ( this . gridOptions . enableRowDetailView ) {
1226
+ this . slickRowDetailView = new SlickRowDetailView ( this . angularUtilService , this . appRef , this . _eventPubSubService , this . elm . nativeElement , this . rxjs ) ;
1227
+ this . slickRowDetailView . create ( this . columnDefinitions , this . gridOptions ) ;
1228
+ this . _registeredResources . push ( this . slickRowDetailView ) ;
1229
+ this . extensionService . addExtensionToList ( ExtensionName . rowDetailView , { name : ExtensionName . rowDetailView , instance : this . slickRowDetailView } ) ;
1230
+ }
1224
1231
}
1225
1232
1226
1233
private registerResources ( ) {
@@ -1247,13 +1254,6 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy {
1247
1254
this . extensionService . translateColumnHeaders ( ) ;
1248
1255
}
1249
1256
1250
- if ( this . gridOptions . enableRowDetailView ) {
1251
- this . slickRowDetailView = new SlickRowDetailView ( this . angularUtilService , this . appRef , this . _eventPubSubService , this . elm . nativeElement , this . rxjs ) ;
1252
- this . slickRowDetailView . create ( this . columnDefinitions , this . gridOptions ) ;
1253
- this . _registeredResources . push ( this . slickRowDetailView ) ;
1254
- this . extensionService . addExtensionToList ( ExtensionName . rowDetailView , { name : ExtensionName . rowDetailView , instance : this . slickRowDetailView } ) ;
1255
- }
1256
-
1257
1257
// also initialize (render) the empty warning component
1258
1258
this . slickEmptyWarning = new SlickEmptyWarningComponent ( ) ;
1259
1259
this . _registeredResources . push ( this . slickEmptyWarning ) ;
0 commit comments