HowTo change the complete data of a grid panel?
I have a grid panel with buffered store and my own proxy to get the data. Sorting and filtering is being done remote.
Now when the user types in some filter text I want to completely reload the grid. How can I do that?
I found a hack here:
But it is not working for me and it is pretty heavy modification of standard Ext classes. It seems, a buffered store is not meant to be completely refilled with new data.
What about the grid? Can I attach a new store to the grid at runtime?
I tried grid.reconfigure(newStore) and newStore.guaranteeRange(0, 100) with little success. The data is being loaded by the store, but the grid is blank afterwards and the scrollbar is not reset.
Is there any working and less hacky way to simply change the data of a grid? That has to be possible somehow.
Ext JS Premium Member
try adding the grid current colmodel also
Thanks for the tip.
You mean the array of column models that I passed to the grid as "columns" config?
I tried as you suggested, but it did not help unfortunately. Same effect.
Does no one have a working solution for this? This should be a common use-case. For unbuffered stores, it's working.
This is clearly a showstopper for us. If this is not possible, we can't use/buy ExtJs.
that solved a simular issue for me.
the fact the reconfigure doesn't do what its suppose to is really frustrating.