Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to validate time in raddatetimepicker?
    text
    copied!<p>Thank you for viewing my post. I have a telerik raddatetimepicker integrated within my project. I have a validation control to ensure the end user selects a date. However, how can I validate that the user selects a time? The default time is set to 12:00AM. So, is there a way that I can produce a code that checks to see if there is "12:00 AM" within the textbox? For example, if the textbox does have "12:00 AM" after the date, it throws up an error, and the user can't proceed. The textbox contains both the date and the time together.</p> <p>I've researched this a lot, and I can't seem to find a way to validate time in the picker.</p> <p>Thanks again, and I look forward to hearing what you have to say.</p> <p>NOTE: MY coding is done with VB, and I'm working in Visual Studio 2010.</p> <p>Josh</p> <pre><code>telerik:raddatetimepicker ID="TimeOfCourse" runat="server" ShowPopupOnFocus="True" Culture="en-US" AutoPostBack="True" AutoPostBackControl="TimeView" Height="26px" HiddenInputTitleAttibute="Visually hidden input created for functionality purposes." Width="200px" WrapperTableSummary="Table holding date picker control for selection of dates."&gt; &lt;timeview runat="server" cellspacing="-1" columns="8" interval="00:15:00" /&gt; &lt;timepopupbutton hoverimageurl="" imageurl="" /&gt; &lt;calendar runat="server" usecolumnheadersasselectors="False" userowheadersasselectors="False" viewselectortext="x" /&gt; &lt;dateinput runat="server" dateformat="M/d/yyyy" displaydateformat="M/d/yyyy" labelwidth="" BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" AutoPostBack="True" Height="26px" /&gt; &lt;datepopupbutton hoverimageurl="" imageurl="" /&gt; &lt;/telerik:raddatetimepicker&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload