Serge Almazov
Serge Almazov

Reputation: 396

How can I reload view in ExtJS4 via controller?

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

Answers (1)

Danilo M.
Danilo M.

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

Related Questions