Apr 25, 2013, 3:58 PM
After adding record to a Store via client side code the GridPanel doesn't know that the row exists.
Hi there, if I add a record to the GridPanel using this code:
The GridPanel doesn't know the row index but it knows that it exists and the data is there, this confirms it:
Thanks
grid.getStore().add(...
Then click on that newly added row and try to read the index using:grid.getSelectionModel().selected.items[0].index
It won't work, it returns undefined, reloading the store fixes that but defeats the purpose.The GridPanel doesn't know the row index but it knows that it exists and the data is there, this confirms it:
grid.getSelectionModel().selected.items[0].data
Any hints?Thanks