-
19 Sep 2010 5:04 PM #1
How to add scroll event to Ext.form.FormPanel?
How to add scroll event to Ext.form.FormPanel?
Trying to get rid of bug in Sencha Form example (1, 2).
When form is loaded on iPad, landscape mode, cursor is set to one of text fields (keyboard active) and form is scrolled up or down - cursor is shown in front of all form elements, scrolling with all form, instead of staying in text field.
I think, that I can avoid this in my application, by adding some sort of event handler that can hide keyboard right after scrolling started (moving focus to submit button), but can't find a way to add this event to my form.
So, the question is: How to add onScroll or touchMove event to Sencha Form example?
-
19 Sep 2010 7:11 PM #2
Listen to the scroller:
Code:new Ext.Panel({ scroll: 'vertical', listener: { afterrender: function(c){ c.scroller.on('scroll', function(){ // do stuff }); } } });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
1 Jun 2011 2:38 AM #3
Cannot scroll through form ... help me !!!!!!!! :(
Cannot scroll through form ... help me !!!!!!!! :(
I created the Customer Registration form with 16 fields, so some of the fields cannot see. So I added the autoscroll: true , but still cannot some of the code is below
mPOS.views.CustomerReg = Ext.extend(Ext.Panel, {
autoscroll: true,
initComponent: function() {
this.id='CustomerRegistration',
this.url='loadCustomer.php?action=save',
this.items = [{
xtype: 'fieldset',
instructions: 'Pleas Fill Customer Information',
scroll: 'vertical',
defaults: {
labelWidth: '30%'
},
items: [{
xtype: 'textfield',
id: 'CompanyName',
label: 'Company Name',
name: 'companyname',
required: true
},
Please help me, I am very new to sencha touch. I start to learn it last 2 weeks.
-
17 Jan 2013 1:58 AM #4
Is it the same way to add scroll event to Ext.grid.Panel?
Is it the same way to add scroll event to Ext.grid.Panel?
I have Ext.grid.Panel component and I am adding scroll event to it with the following way,<br>
<br>but it does not log anything in console.Code:<br>afterrender: {<br> fn: function(s){<br> s.scroller.on('scroll',function(){<br> console.log('111111111'); <br> }) ;<br> }<br>}
Similar Threads
-
How to add Scroll bar to the control Ext.ux.form.MultiSelect
By chullan in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 24 Feb 2011, 2:27 PM -
add link to registration form in login formpanel
By concep86 in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 4 May 2010, 10:42 PM -
[2.2.1] Ext.form.FormPanel and "render" event
By nassaja-rus in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 18 Apr 2009, 2:24 AM -
How to add scroll bar to the form-markup.js
By sunilraj in forum Community DiscussionReplies: 1Last Post: 23 Aug 2008, 9:42 PM -
[Ext 2.0] Ext.FormPanel doesn't add fields to form
By mdissel in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 9 Jul 2007, 2:39 AM


Reply With Quote