View Full Version : Change View Template

2 Nov 2011, 5:35 AM
What is the right way to change the View Template?

I will have lots of store changes and depending of the data template changes.

I read in the forums a proposal to use layout:card container instead of the view template change but I don't know how many cards to configure in the container construction phase.

Any ideas what will be the fastest solution to update my ui.

Can anyone rate the straightforward method:
view.tpl = newTpl;
view.bindStore(newStore); // using the internal refresh

2 Nov 2011, 7:00 AM
I would think you could update the template and then call refresh() on the view.