Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
igx-grid endEdit no longer returns a value
posted

We have just upgraded from version 10 to 14. In the process, we discovered that although the grid's crud service still returns true if the end cell editing event is cancelled, this return value is not passed back in the grid's endEdit method.

Knowing whether or not end cell editing has been cancelled is a critical part of our application's functionality. We absolutely cannot let the user proceed with other operations (navigating away from the page, printing the records, etc) if the cell is still in edit mode and the user's changes have not been persisted.

Please restore the return value for endEdit as soon as possible

Parents Reply
  • 1560
    Offline posted in reply to Lance Tressler

    Hello,

    After further investigation, I could say that the endEdit method of the grid is from type void in both versions 10 and 14 as you could see in our API documentation. However, in version 10, it indeed returns the same value as the cellEdit cancel event argument. My assumption is that since this behavior was not intended for public use in the newer versions the actual implementation of this method is moved to the grid's CRUD Service which is accessible but not publicly exposed.

    In addition, I was not able to find a cancelable endCellEditing event in version 14 and as it is mentioned in this topic the cancelable events related to the editing are cellEditEnter and cellEdit. However, in both cases, the event is canceled manually through the code under certain conditions which are known to the developer and since previously the grid endEdit method returns the same value as the cellEdit cancel event argument, you could store its value in a global variable as I previously suggested and use it instead of the method.

    If this suggestion does not help in resolving the issue, it would be useful if you could provide more details about your scenario, the required behavior and when calling endEdit method is necessary in order to achieve the desired behavior. Also, it would be helpful if you could modify the previously provided sample in order to reproduce the issue and send it back as well as steps to reproduce so I could investigate if there is a different approach to achieve your requirement.

    Thank you for your cooperation.


    Looking forward to hearing from you.


    Sincerely,
    Teodosia Hristodorova
    Software Developer

Children