BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
import {Component, ViewEncapsulation,ViewChild} from '@angular/core'; import {CommonModule} from "@angular/common"; import {EJComponents} from 'ej-angular2'; @Component({ selector: 'ej-app', templateUrl: 'src/grid/grid.component.html', }) export class GridComponent { public gridData: any; public editSettings; public page:any; public toolbarItems; @ViewChild('grid') Grid: EJComponents<any, any> ; ngAfterViewInit(){ this.Grid.widget.selectRows(0)// call the selectrows API for selecting the rows } actionComplete(e:any){ if(e.requestType == "save") { this.Grid.widget.refreshContent(); } } |
Hi Venkatesh
Thanks for the example.
<ej-grid
#grid
[dataSource]="gridData" [allowPaging]="true" >
” in template. But in ViewChild decorator defined the Grid id as different like @ViewChild('g1') Grid: EJComponents<any, any>
actionComplete(e:any){
if(e.requestType == "save")
{ }
|