PDA

View Full Version : Date picker problem



heartlesslove
2 Oct 2013, 10:12 PM
Hi, Everyone . I'am having issues in the date picker. The final value cannot be selected by the use of date picker . I am new to sencha please help.Thank You.

existdissolve
3 Oct 2013, 3:29 AM
What do you mean by "final value"? Can you post some code, or a screenshot, or both? That would help debug your issue.

Thanks!

heartlesslove
9 Oct 2013, 3:28 AM
Ext.define('test.view.empReg', {
extend: 'Ext.Panel',
//alias: 'widget.FormPanel',
//requires: ['Ext.field.Number'],
config: {
scrollable: true,
style: 'background-color: transparent;',
fullscreen: true,


items: [{ xtype: 'spacer', height: 10 },
{
xtype: 'fieldset',
// id: 'fldst',
width: 'auto',
height: 'auto',
title: 'REGISTRATION FORM',
cls: 'fldset',
//style: 'background-color: orange;color: white',
items: [{
xtype: 'textfield',
id: 'emp_id',
placeHolder: 'EMPLOYEE ID',
cls: 'clsbb',
maxLength: 10


},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textfield',
id: 'emp_name',
cls: 'clsbb',
placeHolder: 'EMPLOYEE NAME'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'radiofield',
label: 'MALE',
cls: 'clsbb',
value: 'M',
id: 'male',
name: 'gender',
checked: true
},
{
xtype: 'spacer',
height: 5
},
{


xtype: 'radiofield',
label: 'FEMALE',
cls: 'clsbb',
value: 'F',
id: 'female',
name: 'gender'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'datepickerfield',
placeHolder: 'SELECT YOUR DOB',
cls: 'clsbb',
id: 'dob'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'datepickerfield',
placeHolder: 'SELECT YOUR DOJ',
cls: 'clsbb',
id: 'doj'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textareafield',
id: 'curr_addr',
cls: 'clsbb',
placeHolder: 'CURRENT ADDRESS'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textareafield',
id: 'per_addr',
cls: 'clsbb',
placeHolder: 'PERMANENT ADDRESS'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'emailfield',
id: 'email',
cls: 'clsbb',
vtype: 'email',
allowBlank: false,
placeHolder: 'EMAIL ID'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'emailfield',
id: 'altr_email',
cls: 'clsbb',
placeHolder: 'ALTERNATE MAIL ID'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textfield',
id: 'contact',
cls: 'clsbb',
placeHolder: 'CONTACT',
maxLength: 10
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textfield',
id: 'altr_contact',
cls: 'clsbb',
placeHolder: 'ALTERNATE CONTACT',
maxLength: 10
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'selectfield',
id: 'team',
cls: 'clsbb',
options: [
{ text: 'SELECT YOUR TEAM', value: '0' },
{ text: 'DOT NET', value: 'DOT NET' },
{ text: 'APPLE', value: 'APPLE' },
{ text: 'ANDROID', value: 'ANDROID' },
{ text: 'FINANCE', value: 'FINANCE' }
]
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textfield',
id: 'team_lead',
cls: 'clsbb',
placeHolder: 'TEAM LEAD NAME'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'textfield',
id: 'exprience',
cls: 'clsbb',
placeHolder: 'YOUR EXPRIENCE'
},
{
xtype: 'spacer',
height: 5
},
{
xtype: 'selectfield',
id: 'edu_qual',
cls: 'clsbb',
options: [
{ text: 'SELECT YOUR DEGREE', value: '0' },
{ text: 'B.E', value: 'B.E' },
{ text: 'B.TECH', value: 'B.TECH' },
{ text: 'M.B.A', value: 'M.B.A' },
{ text: 'M.TECH', value: 'M.TECH' }
]
}]
},
{
xtype: 'spacer',
height: 3
},
{ xtype: 'panel',
items: [{
xtype: 'button',
text: 'SUBMIT',
//ui:'action',
cls: 'btnn',
id: 'btnsubmit'


}]
}]


}
});


I could not select the year 2013 and date 31 or the month dec.

existdissolve
9 Oct 2013, 3:50 AM
So this is for Sencha Touch? Might want to ask in the correct forum.