If you do not want the Today button on your datepickers, you just need to use the showToday option on datePicker.
And so that the DatePickers are not inside the panels, just do not use the FormPanel in this example and create datePickers that define applyTo config :
var startdt = new Ext.form.DateField({ applyTo: 'tbStartDt', // <-- here you say where it must be rendered fieldLabel: 'Start Date', name: 'startdt', id: 'startdt', vtype: 'daterange', endDateField: 'enddt', // id of the end date field showToday: false }); var enddt = new Ext.form.DateField({ applyTo: 'tbEndDt', // <-- here you say where it must be rendered fieldLabel: 'End Date', name: 'enddt', id: 'enddt', vtype: 'daterange', startDateField: 'startdt', // id of the start date field showToday: false });
Then your html page should have 2 inputs with identifiers: tbStartDt and tbEndDt , which we defined above:
Start Date: <input id="tbStartDt"></input> End Date: <input id="tbEndDt"></input>
You can check the example that I did at jsfiddle.net/CrfvC/26/ .
source share