PDA

View Full Version : Date Picker not working in IE - Extjs 4.



kumar_Rajesh78
12 May 2014, 8:46 AM
Hi team,
I am trying to implement datepicker using the following code. I am setting the value of the date dynamically using the following code. It works fine in Chrome, but it does not work in IE9. I did not try on IE7 or 8. I like it to work in IE9.

Is there a different way of handling dates in internet explorer.


Ext.ComponentQuery.query('#reportDate')[0].setValue(Ext.Date.format(reportDateAsDate,'m/d/Y'));


Ext.define('Report.view.form.TemplateForm', {
extend: 'Ext.form.Panel',
alias: 'widget.leverageform',
height: 25,
requires:['Report.util.Util'],
layout:'hbox',
buttonAlign: 'center',
bodyStyle: 'background:#D9E2EF;border:0;padding:0px 5px 0 300px',
items:[
{
fieldLabel: 'Enter the Date:',
itemId:'reportDate',
name: 'reportDate',
align:'right',
xtype: 'datefield',
tooltip: 'Enter the report date',
format:'m/d/Y'
},

mdnaveed42
13 May 2014, 5:29 AM
Hi,

Are you looking for date picker or datefield?

For datepicker, Click here (https://fiddle.sencha.com/#fiddle/5l7)

For datefield, It should work well with IE 9. Please check for trailing comma you might have left. If still problem exists, Please the error details or create a fiddle to assist you.

Thanks,
MD Naveed
\m/