RadDatePicker disables previous dates

2 posts, 0 answers
  1. Doug
    Doug avatar
    14 posts
    Member since:
    Apr 2013

    Posted 17 May 2013 Link to this post

    I am having a problem with my RadDatePicker on my page.  Seems to be consistent across all browsers.  The problem is this; it works fine the first time.  However, if i immediately select the RadDatePicker again, without refreshing the page or navigating to another page and then coming back, it disables all of the previous dates from the date i had picked.  So for example, if I pick todays date in the date picker 5/17/2013..... and then run my report ( my page runs a report) and then i immediately go and try to pick another date off of the date picker, all of the dates previous to 5/17/2013 are grayed out and disabled.   Please any help would be great!!!  This is frustrating.  I have not set the minimum date, seems to me it should work "out of the box" so to speak.  I have attached some screen shots too.. also below is my code.... thanks

    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
            </telerik:RadScriptManager>
        
            <br />
            <br />
        
        </div>
        <table style="width:100%;">
            <tr>
                <td colspan="3" style="text-align: center">
        
                    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                    </telerik:RadWindowManager>
        
            <asp:Label ID="lblHeader" runat="server" 
                Text="Show all batches from given recipe by Make Date" 
                        style="text-align: center; font-size: xx-large"></asp:Label>
        
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
        
                       <uc1:hdrMenu ID="hdrMenu1" runat="server" />

                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="77px" 
                        style="margin-top: 0px" width="568px">
                        <telerik:RadComboBox ID="cbxRecipe" Runat="server" DataSourceID="dsRecipe" 
                       Height="600px" Width="250px" EnableLoadOnDemand="true"
                                DropDownWidth="249px" 
        EmptyMessage="Select a Recipe" HighlightTemplatedItems="true"
                     EnableAutomaticLoadOnDemand="True" 
                        DataTextField="RecipeCode" DataValueField="RecipeCode" 
                        AutoPostBack="True"  >
                            <HeaderTemplate>
                                <table style="width: 249px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 40px;">
                                            Recipe</td>
                                        <td style="width: 149px;">
                                            Description</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 249px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 40px;">
                                            <%# DataBinder.Eval(Container.DataItem, "RecipeCode")%>
                                        </td>
                                        <td style="width: 149px;">
                                            <%# DataBinder.Eval(Container.DataItem, "Recipe")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>
                        <asp:SqlDataSource ID="dsRecipe" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:oCon_Riverside %>" SelectCommand="select RecipeCode, Recipe
    from [dbo].[CCFIProduction_recipe]
    Order by RecipeCode "></asp:SqlDataSource>
                        <br />
                        <br />
                        <asp:Label ID="LblMkDate" runat="server" Text="Select Make Date:"></asp:Label>
                        <telerik:RadDatePicker ID="RadDatePicker1" Runat="server" AutoPostBack="True" 
                            Culture="en-US">
                            <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
                            </Calendar>
                            <DateInput AutoPostBack="True" DateFormat="M/d/yyyy" 
                                DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                            </DateInput>
                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                        </telerik:RadDatePicker>
                    </telerik:RadAjaxPanel>

  2. Edward
    Edward avatar
    13 posts
    Member since:
    Sep 2011

    Posted 18 May 2013 Link to this post

    Check if you do change the MinDate property of the picker or of the calendar server side in your code-behind or client side in your JavaScript. 

    -Ed
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top