RadDateInput: correct input-format

4 posts, 0 answers
  1. Martine
    Martine avatar
    6 posts
    Member since:
    Nov 2006

    Posted 16 Nov 2007 Link to this post

    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.
  2. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 22 Nov 2007 Link to this post

    hi :)


    Could you please share your input aspx declaration


    Thank you...
    <John:Peel />
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martine
    Martine avatar
    6 posts
    Member since:
    Nov 2006

    Posted 23 Nov 2007 Link to this post

    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.
  5. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 23 Nov 2007 Link to this post

    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
Back to Top