Posted 31 January 2018, 8:48 pm EST
Hello .
I am a beginner of wijmo flex grid.
I would like to refresh wijmo flex grid table.
But I cannot search any result.
How can I refresh a flex grid table?
Forums Home / Wijmo / General Discussion
Posted by: arnoldbendaa on 31 January 2018, 8:48 pm EST
Posted 31 January 2018, 8:48 pm EST
Hello .
I am a beginner of wijmo flex grid.
I would like to refresh wijmo flex grid table.
But I cannot search any result.
How can I refresh a flex grid table?
Posted 31 January 2018, 9:45 pm EST
Try using the Invalidate Method of FlexGrid
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
@ViewChild('flex') flex: wjGrid.FlexGrid;
data: any[] = [{ id: 1, bid: { id: 1.1, test: 'NG1' } }, { id: 2, bid: { id: 1.2, test: 'NG2' } }, { id: 3, bid: { id: 1.3, test: 'NG4' } }];
changeSource() {
//this.data[0].bid.id = 2.1;
this.data[0].bid.test = 'React';
this.flex.invalidate(true);
}
}
Posted 31 January 2018, 11:18 pm EST
Thank you very much.
Very helpful.