-
1 Nov 2011 4:36 AM #11
Do something like...
Code:onItemDisclosure: true, listeners : { itemtap : function(record,index,item,e) { if (e.getTarget('.x-list-disclosure')) { // do something with the disclosure tap } else { var currentRecord = record.store.getAt(index); App.SomePanel.update(currentRecord.data); } } }twitter.com/epiphanydigital #sencha #drupal #jquery #craftbeer #guitar #photography
-
29 Nov 2011 4:51 AM #12
Hi epiphanydigital,
Hi
Thanks!!
Even i am dealing with the same issue.
Here the selected item value in the list is displayed in next panel.
how to setValue in a textbox.
Actually i have a textbox on the top, by selecting item in the list it should able to set the value.
I tried with
But its not working.Code:listeners : { itemtap : function(record,index,item,e) { var currentRecord = record.store.getAt(index); //alert('Disclose more info for ' + currentRecord.get('firstName')); console.log('tap event '+ currentRecord.get('firstName')); Mypanel.dockedItems.textBox.setValue(currentRecord.get('firstName')); }
Any help appreciated.
-
29 Nov 2011 6:41 AM #13
Do you have your store set?
Can you check your javascript developer console and see if there are json objects stored?
The if/else conditional in my example above is required if you want to separate the two events... you may not be trying to do that, but throwing it out there.
Try logging to console this instead:
...just to make sure you're getting the right object and that it's populated. You may already see if it is or not, I can't see your output.Code:console.log('tap event', currentRecord);
You may also need to call the following function:
Code:Mypanel.doComponentLayout();
twitter.com/epiphanydigital #sencha #drupal #jquery #craftbeer #guitar #photography
-
29 Nov 2011 9:10 PM #14
Ok thank you so much for your suggestions.
It is fetching the right record and displaying in console.
I tried with
Ext.getCmp('searchBox').setValue(currentRecord.get('firstName') );
and now working.
-
23 Oct 2012 3:09 AM #15
Is there any good tricks,that we have to handle both these events separately.
Means
disclose : function(this, record, target, index, e, eOpts
) {
this.fireEvent('discl', this, record, target, index, e, eOpts);
},
itemtap: function(this, index, target, record, e, eOpts
){
this.fireEvent('itemtp', this, index, target, record, e, eOpts
);
}
Is this possible in sencha touch 2 ?
Regards
Manoj Parida
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
disclosure and itemtap on list
By stefx in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 2 Sep 2011, 4:23 AM -
how to add disclosure button to the list
By lukesayaw in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 20 Oct 2010, 5:08 PM -
Pressing 'Enter' key that triggers a button causes issue on TextArea
By zet in forum Ext GWT: DiscussionReplies: 2Last Post: 22 Sep 2010, 5:45 PM -
Any event available on pressing Ext.PagingToolbar Refresh button
By syedarshadali in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 28 Oct 2009, 4:36 AM -
ColumnTree with column button that triggers an event
By xnd in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 Sep 2009, 7:04 AM


Reply With Quote