Current filter:
                                You should refresh the page.
                                  • Dear Team,

                                    Please share the event fired in dx data grid on ' undo changes' button press.

                                    Thanks

                                • Alisher (DevExpress Support) 11.29.2019

                                  Hi Umesh,

                                  From what I gather, you are using the "cell" editing mode and wish to determine when the Revert button is clicked. If so, DataGrid does not provide a public API to accomplish this task. Please describe your scenario in greater detail. I will check if it is possible to implement it by using a private API.

                                • UMESH Bhardwaj 12.01.2019

                                  Hi,

                                  My requirement is to restrict user from grouping when datagrid is invalid.
                                  I have made the group panel invisible in Onrowvalidating event case data grid is invalid. but not able to make it visible again if user presses on Revert button.

                                • UMESH Bhardwaj 12.01.2019

                                  code applied on OnRowValidating event is as below:

                                   if (!e.isValid) {
                                              e.component.instance().option("groupPanel.visible", false);
                                            }
                                            else {
                                              e.component.instance().option("groupPanel.visible", true);
                                            }

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,
                                At the moment, DataGrid does not provide an event that is raised when a user cancels editing a cell. In your particular case, handle onContentReady as described at dxDataGrid - Enable/Disable button if data is valid/invalid and show your group panel if hasEditData() returns 'false'.

                                • UMESH Bhardwaj 12.02.2019

                                  I wrote below code in oncontentReady.  if (!e.component.instance().getController('validating').validate()) {
                                              e.component.instance().option("groupPanel.visible", false);

                                            }
                                            else {
                                              e.component.instance().option("groupPanel.visible", true);
                                            }

                                  That resolves my purpose

                                • Ilya (DevExpress Support) 12.03.2019

                                  Hi Umesh,
                                  I'm happy to hear that you have found a solution that works for you. I only wish to warn you that we did not document this private API and cannot guarantee that it won't be changed in newer versions (I mentioned it in your other ticket - validate grid API dx data grid).

                                  So, I still suggest that you consider implementing the solution I described in the answer. Let me know if you experience any issues with it.