I need a datepicker widget via ExtJs on my pages that works like this.
All I found in ExtJs are
DatePicker and This sample with pickers
The problem is that standart DatePicker looks like just a huge calendar with “today” button. The sample gives picker that looks like i want(textbox field and calendar on demand) but it works in the panel here. I don’t want to create panel just to show one datepicker. This sample match very well – i need startdate and enddate too, but this panel is sux. I just want two separate pickers without any panel.
As I know the idea of standart datepicker is that you create textbox on your page and then you make a ExtJs script where you show datepicker on textbox click or something like this.
I’m not expert in ExtJs could anybody show the sample how to work with dates via ExtJs in Asp Net MVC ?
If you don’t want the
Todaybutton in your datepickers you just have to use theshowTodayconfig option on the datePicker creation.And for the DatePickers not to be inside panels, just don’t use the
FormPanelin the example and create the datePickers defining theapplyToconfig option:Then your
htmlpage will need to have the 2 inputs with ids:tbStartDtandtbEndDtthat we defined above:You can test the example I made in jsfiddle.net/CrfvC/26/.