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

RadDateInput: correct input-format

3 Answers 114 Views
Input
This is a migrated thread and some comments may be shown as answers.
Martine
Top achievements
Rank 2
Martine asked on 16 Nov 2007, 08:44 AM
Dear reader,

I've noticed a difference between the Prometheus RadDateInput and the previous version. In the "old" date input, you could insert "1100" and that was understood by the control as "11:00". In the Prometheus-version, "1100" is an invalid input. Is there a reason for this? Is there a way for the input to recognize 4 numbers as a time? Can I do that by using my own Javascript for example? Users sometimes have to insert a lot of times, using the tab-key and the numeric keys on the keyboard is the fastest way to do that. Now, they have to use the ":" key too and that slows the process down a lot.

Thanks in advance,
Martine.

3 Answers, 1 is accepted

Sort by
0
plamen
Top achievements
Rank 1
answered on 22 Nov 2007, 12:40 PM
hi :)


Could you please share your input aspx declaration


Thank you...
<John:Peel />
0
Martine
Top achievements
Rank 2
answered on 23 Nov 2007, 10:59 AM
Hi John,

I created a new WebForm and dropped the new RadDateInput (Prometheus) on it, setting the dateformat and displaydateformat to H:mm. Inserting 1100 leads to an invalid datetime.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Test RadDateInput</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadDateInput ID="RadDateInput1" runat="server" Culture="(Default)" DateFormat="H:mm" DisplayDateFormat="H:mm">  
        </telerik:RadDateInput> 
      
    </div> 
    </form> 
</body> 
</html> 

On the next webform, I did exactly the same, but now using the "old" dateinput from RadControls for ASP.NET. Here, inserting 1100 gives a correct input (is changed by the control to 11:00).

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="radI" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Test RadDateInput old</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <radi:raddateinput id="RadDateInput1" runat="server" dateformat="H:mm" displaydateformat="H:mm"></radi:raddateinput> 
      
    </div> 
    </form> 
</body> 
</html> 

Kind regards,
Martine.
0
Missing User
answered on 23 Nov 2007, 02:09 PM
Hello Martine,

I was able to reproduce the problem. Thank you very much for pointing this issue, it will be fixed for the next release of the RadDateInput Prometheus control.

Your Telerik points were updated.



Regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Martine
Top achievements
Rank 2
Answers by
plamen
Top achievements
Rank 1
Martine
Top achievements
Rank 2
Missing User
Share this question
or