PDA

View Full Version : DatePickerField with date from store ?



GermanGuy
4 Feb 2011, 11:23 AM
Hi all,

..I have been playing around a lot and searching all over the forum and Google, but I could not find any working way/example/details to have a DatePickerField populated from a data store. Maybe this is just me, maybe someone can kick me in the right direction ?

I am trying many different alterations of below code:


{ title: 'Details',
xtype: 'form',
id: 'Form',
scroll: 'vertical',
store: oStore,
items: [{
xtype: 'datepickerfield',
name: 'iFinDate',
disabled: true,
label: 'End-Date'
},{
xtype: 'textfield',
name: 'iType',
disabled: true,
label: 'Absence-Type'
}]
}

The textfield 'iType', for same store and dataset, is filled perfect fine. Just the datepickerfield I can not get filled from a store - I have tried a lot of different ways including different date formats from the store.

Could maybe someone give me a hint which dateformat has to come from the (Json) Store or what else has to be changed or what am I doing wrong ?

Thanks so much,

Frank

GermanGuy
9 Feb 2011, 2:59 AM
..bump...maybe no one ever populated a datepickerfield from store ? Or if, I would really appreciate a hint as to how it may work...

Thanks so much,

Frank