question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a handler `onRowEdit` and `onRowEditCancel`

See original GitHub issue

For when editable objects are provided…

Is your feature request related to a problem? Please describe. I check for errors when validating input data on editing or adding new items. Those errors I want to clear when the editing is canceled.

Describe the solution you’d like There is already some nice handlers as onOrderChange or onRowClick. I would like to have an additional handler onRowEdit when editing is started and onRowEditCancel when the X is pressed in editing mode.

Additional context Also, I think it makes great sense to have a handler for when the detailPanel is opened/closed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:6

github_iconTop GitHub Comments

2reactions
hGicacommented, Jul 17, 2019

@waisbek see my answers on https://github.com/mbrn/material-table/issues/751 though I wasn’t able to get access to is editing

1reaction
Rombusevilcommented, Oct 12, 2019

I’ve stumbled upon this issue due to needing functionality to handle a user message when quitting the page with unsaved data. I’ve made the PR providing a callback that will be called with a boolean indicating a “isEditing” status. You can try it out installing it like this npm install git://github.com/Rombusevil/material-table.git#onEditingStatusChange-build --save

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I use a Grid View OnRowEditing Event Handler to ...
I've recently added an "Edit Invalid Entries" button that I want to program to allow the clients to make changes to the erroneous...
Read more >
Angular + PrimeNG : DataTable Row Editing Example
component.ts we will add event handlers onRowEditInit, onRowEditSave and onRowEditCancel. These get called if the cell edit is initiated or cancelled. import ...
Read more >
Editable Grid View with ASP.Net Web Forms - On My Way
In ASP grid view 'OnRowUpdating','OnRowEditing','OnRowEditCancelling' events are responsible for shifting the edit and view mode of the grid.
Read more >
GridView.RowEditing Event (System.Web.UI.WebControls)
GridViewEditEventHandler RowEditing; ... The following example demonstrates how to use the RowEditing event to put a row in edit mode when the data...
Read more >
PrimeNG Tutorial - DataTable Component Row Editing Example
In the book-data component we add the functions onRowEditInit, onRowEditSave and onRowEditCancel. These get called if the cell edit is initiated,saved or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found