We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Delete Row

Thread ID:





147868 Sep 26,2019 10:28 AM UTC Sep 26,2019 10:38 AM UTC Angular - EJ 2 1
Tags: Grid
Asked On September 26, 2019 10:28 AM UTC

I have a grid with the first column containing actions that can be performde on the line, one of them is the deletion, but when i call the deleteRecords or deleteRow methods nothing happens, how can i make this?


<ejs-grid id= "segnalationGrid" [dataSource]='dataGrid | async' (created)="created()" [allowSorting]='true'>
      <e-column headerText='Azioni' width=180>
         <ng-template #template let-data>
            <div class='e-btn-group'cssClass='e-flat'>
               <button ejs-button class="takeButton" cssClass='e-flat'><span class="e-icons e-info2"></span></button>
               <button ejs-button class="checkButton" cssClass='e-flat'><span class="e-icons e-check"></span></button>
               <button ejs-button class="noteButton" cssClass='e-flat'><span class="e-icons e-addnote"></span></button>
               <button ejs-button class="closeButton" cssClass='e-flat'><span class="e-icons e-close" (click)="deleteRow()"></span></button>
      <e-column field='idContainer' [visible]="false" [isPrimaryKey]="true"></e-column>
      <e-column field='containerName' headerText='Nome' width=120></e-column>
      <e-column field='eventDate' headerText='Data' textAlign='Right' format='yMd' width=120></e-column>
      <e-column field='idLanguage' headerText='T' textAlign='Right' width=90></e-column>
      <e-column field="description" headerText='Descrizione'></e-column>


import { Component, OnInit, ViewChild } from '@angular/core';
import { ActiveWarnings } from '../shared/models/activewarnings';
import { ActiveWarningsStore } from '../shared/stores/activewarnings.store';
import { Observable } from 'rxjs';

  selector: 'app-segnalation-grid',
  templateUrl: './segnalation-grid.component.html',
  styleUrls: ['./segnalation-grid.component.scss']
export class SegnalationGridComponent implements OnInit {
   public dataGrid: Observable<ActiveWarnings[]>;
   @ViewChild('segnalationGrid') public grid: any;

  constructor(public activeWarningsStore:ActiveWarningsStore) { }

   ngOnInit() {
      this.dataGrid = this.activeWarningsStore.activeWarnings;

   created() {
      var grid = document.getElementById("segnalationGrid");
      grid.parentElement.style.height = window.innerHeight + "px";
   deleteRow() {


Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On September 26, 2019 10:38 AM UTC

Hi Emanuele, 

Greetings from Syncfusion.  

We could see you would like to delete the rows using the external actions with the use of deleteRows or deleteRecord methods. Usually, this actions requires the EditService to be injected and enable the editSettings.allowDeleting. Refer to the following Help Document. 

Also, refer to the Observables concept of the Grid in the following Help Document. 

Seeni Sakthi Kumar S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon