-
6 Jan 2011 9:59 PM #1
populate a list with the selected items from another list
populate a list with the selected items from another list
Hi All
I have a list defined with tpl, which is getting populated from a jsonstore. Now user can select multiple items in this list and move to next page/card, where we want show him the items he selected in the list on previous page/card.
Being a newbie I have implemented the first list and populated it, I need some ideas to get the selected items from this list and populate the other list as user moves to the next card. Any ideas will be really helpful for me in meeting deadlines.
Thanks
Rajiv
-
19 Jul 2011 4:18 AM #2
Solved it!
Solved it!
Okey, so after looking at a bunch of tutorials i managed to find a solution:
Code:var fromAirports = new Ext.List({ fullscreen: true, id: 'airportList', indexBar: false, itemTpl : '{firstName} {lastName}', onItemTap: function(item, index) { var formField = NotiflyApp.views.formField; var selectedAirport = store.getAt(index).get('firstName'); var selectedIATA = store.getAt(index).get('lastName'); var from = Ext.ModelMgr.create( { from: selectedAirport + ' ' + selectedIATA }, 'Contact'); NotiflyApp.views.formField.load(from); NotiflyApp.views.viewport.setActiveItem('formInput', {type: 'fade'}); }, store: store });
Similar Threads
-
[OPEN-626] 1.0.1 Grouped Ext.List Issue When Adding Items When List Not Visible
By benwhite in forum Sencha Touch 1.x: BugsReplies: 0Last Post: 3 Dec 2010, 7:06 AM -
Combobox inner list not aligning list items propertly ?
By ritesh.kapse in forum Ext 2.x: Help & DiscussionReplies: 13Last Post: 29 Oct 2010, 5:29 AM -
Populate XML data in a List
By busybee in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 19 Oct 2010, 4:09 AM -
[FNR] BeanModelGenerator wrap list in a list on set() for non BeanModel items
By zalant in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 17 Sep 2010, 3:02 AM -
Populate dynamically selected items of a item selector
By Angelo Santos in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 21 Aug 2009, 6:28 PM


Reply With Quote