如何通过角度2中的上下文菜单删除kendoui网格中的记录后刷新
注意在调用此delete()方法(Api)之后,然后我想刷新特定网格
Delete() {
if (this.Index != null) {
this.headers = new Headers();
this.headers.append('Content-Type', 'application/json');
this.RecuNum = '1';
this.http.post('/BizApi/Delete', JSON.stringify(this.RecuNum), { headers: this.headers })
.map(response => response.json())
.subscribe(result => {
//var Deleterec = result[0];
this.router.navigate(['/Home/AListing']);
},
err => console.log(err)
);
this.Products();
}
}