This is a migrated thread and some comments may be shown as answers.

RadDatePicker disables previous dates

1 Answer 176 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 2
Doug asked on 17 May 2013, 05:25 PM
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>

1 Answer, 1 is accepted

Sort by
0
Edward
Top achievements
Rank 1
answered on 19 May 2013, 02:37 AM
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
Tags
Calendar
Asked by
Doug
Top achievements
Rank 2
Answers by
Edward
Top achievements
Rank 1
Share this question
or