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
105
igGrid Resizing column does not save edited row changes
posted

We are using the 2016.2 version but can also reproduce this with the latest (2017.1).  We have long column names and users who like to resize columns

Steps to reproduce:

1. Click the first column and change the text - I changed "Sales Representative" in the first record for Nancy to "Test"

2. Resize the first column so you can see the full column name.

Expected results: EditRowEnding event will show ui.update = true and will detect the changed values (in this example - I expected to see Sales Representative in the old values and Test in the new values 
Actual Results: EditRowEnding event does NOT detect the changed values - ui.update is false and the old values are the same as the new values even though I changed them prior to the row losing focus

I have included an example below:

https://jsfiddle.net/egnLm435/1/

Parents Reply
  • 5513
    Offline posted in reply to Lisa

    Hello Lisa,

    This works if immediate propagation is stopped as in this version of the fiddle: https://jsfiddle.net/egnLm435/23/

    The reason the events work differently is that Updating stops editing for different reasons. Paging, Sorting, GroupBy, Filtering are features that cause rerendering of data as they produce new data views. Updating recognizes this by handling rendering-related events produced by the grid. These never happen if you cancel the underlying feature-specific events.

    With columnResizing editing stops because of the same event that you want to cancel but the cancellation is only recognized by the Resizing feature. Calling stopImmedatePropagation solves this. We stop editing in this case because of how Updating editors are positioned and sized causing column resizing to produce pretty nasty results otherwise.

    I hope this helps! Please, let me know if you have any other questions or concerns!

    Best regards,

    Stamen Stoychev

Children
No Data