Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过angular 2中的上下文菜单删除剑道网格中的记录后,如何刷新_Angular_Typescript_Kendo Grid - Fatal编程技术网

通过angular 2中的上下文菜单删除剑道网格中的记录后,如何刷新

通过angular 2中的上下文菜单删除剑道网格中的记录后,如何刷新,angular,typescript,kendo-grid,Angular,Typescript,Kendo Grid,通过angular 2中的关联菜单删除kendoui网格中的记录后,如何刷新 注意:调用这个delete()方法(Api)后,我想刷新特定的网格 Delete() { if (this.Index != null) { this.headers = new Headers(); this.headers.append('Content-Type', 'application/json'); this.Recu

通过angular 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();
        }
    }

您可以使用
this.router.navigateByUrl('/component',true)你好,Liyaquet Hussain,它不起作用。我想通过使用这个.view.Splice(索引,1)我们可以实现这一点