Reputation: 396
I have a view. Controller is doing some logic, where I press some buttons in view (data passed to server and we have a callback).
I need to update (reload?) view via controller.
Upvotes: 0
Views: 7719
Reputation: 1592
I dont know if I understand but, If you want to reload a grid after an insertion, you need to do this
yourGrid.getView().refresh()
If you want to reload a store after an insertion, you need to do this:
yourStore.load()
or through grid
yourGrid.getStore().load()
in your success or callback function in store.sync()
I hope I helped
Upvotes: 3