View Full Version : set/get Datepicker value ExtJS

7 May 2014, 2:40 AM
I'm using Sencha Architect (Ext.menu.DatePicker). But I have a problem with getters and setters.
This is my datepicker:

{ xtype: 'datemenu', floating: false, height: 242, id: 'calendarT', width: 241 }

And later to get value I'm using .getValue() function:

console.log(Ext.getCmp('calendarT').getValue()); But firebug says: 'TypeError: Ext.getCmp(...).getValue is not a function'

With set is the same problem.
Any solution?
Thanks for all, Ivan.

7 May 2014, 5:49 AM
thanks for the answer, but this isn't a solution because I'm using datemenu and you create with datefield.

my work is similar to this: https://fiddle.sencha.com/#fiddle/5l8

thanks for all.

edit: where is the answer ? :s

7 May 2014, 6:02 AM
Please check this...

Fiddle (https://fiddle.sencha.com/#fiddle/5l7) for Menu date picker.

MD Naveed

7 May 2014, 6:11 AM
yeah, this is the solution. thankss :D