View Full Version : Controls in itemTpl

Dave Miller
4 Sep 2013, 8:14 AM
I have a list in a view generated from a Store.
I wish to put controls in the list lines which can reflect changes back into the data in the Store.
(These are small changes in a long list and going off to a form for each one would be clumbersome).
What is the best / nicest / most framework compliant way of doing this.

Current my itemTpl is something conceptually like "<div> {tag} <input type="checkbox" /> </div>"

Ideally I'd like to generate a framewirk UI style toggle or button within the list line. That would be nice.
Or perhaps I'd like to connect the onclick of the checkbox into the Ext controller. That would be nice.
I don't want to try and write screeds of wheel-reinventing external javascript to catch all the tick changes and reflect them back into the Store. That seems a bad way.

In case it matters the Store is filled ( and thus saved back) by DataProxy things connected to SalesForce using the mechanisms in the "PocketCRM" example.

6 Sep 2013, 6:54 PM
You may want to consider a component dataview.

Dave Miller
10 Sep 2013, 11:33 AM
I have tried this and it lad me to ListItem which has help enormously.

10 Sep 2013, 11:45 AM
Oh good glad to hear.