p-table pSaveEditableRow directive, keep row in edit view

UI Components for Angular
Post Reply
JeffJone
Posts: 1
Joined: 25 Jun 2020, 17:17

25 Jun 2020, 17:27

Hi there,

I would like to keep a row in edit view after I clicked on the button with the 'pSaveEditableRow' directive.

<b>current behavior:</b>
I edit a row. I confirm my changes by clicking on the button with 'pSaveEditableRow' directive. Put request goes to my backend. I do a check on one of the fields to see if it is a unique value.
If not the backend sends back a 400 bad request. I display this error with its error message in a toast. And then the row goes out of edit view.

If the client gets a error from the backend I'd like the row to still be in edit view. Is there any way I can accomplish this?

Thanks in advance,
JJ

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests