PDA

View Full Version : Store of grid cleared when editing



Nicolas Suhr
11 Apr 2018, 3:46 AM
I'm developing a Extjs component that will be used to make translations in different languages. It's a gridPanel with 2 columns (lang and a list of words or sentences). A combo-box with all the langs and a tagfield are used as editors for the columns. A blank row can be added with the 'plus' tool.
Fiddle : https://fiddle.sencha.com/#view/editor&fiddle/2ff3
When I'm trying to add one or multiple new rows, the store is randomly cleared. Sometimes, all is working, I can edit all the row but at one moment all is cleared. In fact, only the new records are deleted.
I didn't found anything about this bug on internet. Moreover, I know that the 'onCollectionRemove' event is fired after the 'endUpdate' event of the store (translationStore). So I think, I'm doing something wrong with my stores.