Devextreme-reactive: Stay in edit mode for specific row if row field is not valid

Created on 2 Mar 2018  路  5Comments  路  Source: DevExpress/devextreme-reactive

Hi, if i click "new" button to add row and for that row i want to validate if some field has value or not or any other validation I have found this issue #475 . And by that logic row will not be saved but it will leave edit mode. Is it possible to stay in edit mode for that row?

Grid question

All 5 comments

Hi,

In your case, I suggest you manage added rows using聽the controlled mode. I mean update the聽addedRows property of the聽EditingState聽plugin manually using the聽onAddedRowsChange聽property.

You can use this sample as a starting point. Please refer to comments in the code.

Thank you so much @SergeyAlexeev it works.

One more question @SergeyAlexeev is the logic same for edit button as well, cause I can't make it work for some reason?

Yes, but use the editingRowIds and onEditingRowIdsChange props instead. See the updated demo as well.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zcuric picture zcuric  路  3Comments

madebymt picture madebymt  路  3Comments

franklixuefei picture franklixuefei  路  3Comments

glenpadua picture glenpadua  路  3Comments

linuxhype picture linuxhype  路  3Comments