Hi
I just started looking at the DatePicker, and there are some things that I cant get to work.
*First I do not want the user to be able to choose dates before todays date. I use MinDate for that, and that does not work. Maybe im using the wrong property.
*Second I want to be able to get the selected date in a buttonclick that is in an ajax event, and that does not work, I see no property in the datepicker that is loaded with the selected date.

Hope you can help me with this.




<ext:DatePicker ID="dpDate" runat="server" />




<ext:Button ID="btnSearch" runat="server" Text="Search" Icon="ArrowRefresh" >
<AjaxEvents> <Click OnEvent="btnSearch_Click"></Click></AjaxEvents> 
</ext:Button>






protected override void OnInit(EventArgs e){
    base.OnInit(e);
    DateTime dtDagensdatum = new DateTime();
    dpDate.MinDate = dtDagensdatum;
}


protected void btnSearch_Click(object sender, AjaxEventArgs e){


    pnlSearchResult.Html = dpDate.SelectedDate;








}
Best regards
Mikael Jürke