Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8203255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:29:19+00:00 2026-06-07T07:29:19+00:00

I have a telerik:RadDatePicker in which i am restricting users from selecting future dates

  • 0

I have a telerik:RadDatePicker in which i am restricting users from selecting future dates by setting MaxDate of it to today in code behind. This works perfectly fine. but when the user keys in a date which is greater than today it just displays an ! in the date picker as shown below:

enter image description here

Instead I want to show a error message to the user “Future dates are not allowed” How can i achieve this? Below is the existing code:

<telerik:RadDatePicker CssClass="cssDate" ID="fromDate" runat="server" 
 Skin="Vista">
 <DateInput ID="DateInput1" runat="server" LabelCssClass="datePick" Skin="Vista">
  </DateInput>
 <Calendar ShowRowHeaders="false" ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
ViewSelectorText="x" Skin="Vista">
</Calendar>
<DatePopupButton CssClass="rcCalPopup"></DatePopupButton>
 </telerik:RadDatePicker>

And the code behind where i set the max date of this:

  fromDate.MaxDate = DateTime.Now;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:29:21+00:00Added an answer on June 7, 2026 at 7:29 am

    After days of research and asking grandpa google, He provided me link to telerik official forums where they confirmed that this cannot be done.

    Link to what i want to say.

    The reply says “Actually we have modified the error handling logic a bit as our original implementation did not seem quite intuitive. If garbage input is entered or a date out of range is selected the control will internally set its value to null; the visible input field will not clear its contents but will display them with invalid style until a valid value is entered. However, you will still need to handle possible parsing errors in the client-side OnError event handler of the input component (you can find another example here) as if the input does not contain a valid date it will post empty value to the server and this functionality cannot be turned off.“

    Hope this piece of information will be helpful to others on SO :).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a compare validator which validates on two <telerik:RadDatePicker> Start date and End
I have a Telerik Grid which has a footer that needs to display column
I have a telerik grid in which i have a column where i show
I have a Telerik's RadGrid which has 2 columns like this: <Columns> <telerik:GridBoundColumn HeaderText=AirlineCode
I have a Telerik RadGrid which is composed of rows of checkboxes and text.
I have several Telerik's DropDownList controls which are rendered inside jQuery dialog It is
I have a telerik radgrid and have added a GridClientSelectColumn to allow users to
I have the following XAML code as part of a custom control: <telerik:RadTreeView x:Name=treeModules>
I have a Telerik RadGrid in which I'm implementing custom paging binding to a
I'm using MVC2 and have a telerik popup window in which I'm doing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.