closeCellEdit is not a function

UI Components for Angular
Post Reply
Posts: 1
Joined: 11 Mar 2020, 10:13

11 Mar 2020, 10:21

Hi when i reset and change de parameters to my tables i want to reset de cell edit beacuse when i change the table de row edition keep going active.

This is my code when list is change.

Code: Select all

@ViewChild('table', {static: true}) private _table;

Code: Select all

      .subscribe(result => {, index) => {
            resultData.push({id : index, element, ...element});
        this._table.closeCellEdit(); // this is the funcion close cell 
        this.title = result.config.description;
        this.cols = result.config.cols;
        this.rows = resultData;
        this.selectedColumns = this.cols;
        this.numberElements = this.rows.length;
        this.clonedRow = {};
And this is the error log

Code: Select all

ERROR TypeError: this._table.closeCellEdit is not a function
    at SafeSubscriber._next (list.component.ts:98)
    at SafeSubscriber.__tryOrUnsub (Subscriber.js:183)
    at (Subscriber.js:122)
    at Subscriber._next (Subscriber.js:72)
    at (Subscriber.js:49)
    at MergeMapSubscriber.notifyNext (mergeMap.js:69)
    at InnerSubscriber._next (InnerSubscriber.js:11)
    at (Subscriber.js:49)
    at Observable._subscribe (subscribeToArray.js:3)
    at Observable._trySubscribe (Observable.js:42)
someone help me? thanks

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests