View Full Version : Extjs 3.4 Grid's store undefined after reconfigured

19 Dec 2015, 10:15 PM
up vote
down votefavorite (http://stackoverflow.com/questions/34368483/extjs-3-4-grids-store-undefined-after-reconfigured#)

I have an issue when reconfigure a grid panel. I have a EditorGridPanel which its store is build from a custom columnModel
After saving new settings (decide to show or not show some columns), I get a new store and a new column model, then I call reconfigure function to reconfigure the Grid, like this:
grid.reconfigure(newStore, newColumnModel);
The reconfigure function worked well, but when I click in the checkbox (CheckboxSelectionModel) to select a row, I see this error "Cannot read property 'store' of undefined"

I am working with ExtJS 3.4.
What should I do in this case to make the CheckboxSelectionModel work as before reconfiguring?
Thanks for your help!

Gary Schlosberg
21 Dec 2015, 6:08 AM
Looks like Mitch answered your Stack Overflow thread (http://stackoverflow.com/questions/34368483/extjs-3-4-grids-store-undefined-after-reconfigured#). Are you able to recreate this issue in a Fiddle?

21 Dec 2015, 8:52 PM
Thank Gary. The above stackoverflow thread is mine. It's hard to recreate the issue, but I found what caused error. The code has created one more CheckboxSelectionModel, the error was caused by this new one. I updated code to not create a new CheckboxSM if it was existed, the error disappear now

Gary Schlosberg
11 Jan 2016, 2:54 PM
Interesting. Thanks for posting an update.