Elapsed Time Entry?

3 posts, 0 answers
  1. Bryan Kowalchuk
    Bryan Kowalchuk avatar
    19 posts
    Member since:
    Dec 2009

    Posted 24 Sep 2012 Link to this post

    I need to enter elasped time in the format hh:mm:ss

    The RadTimePicker is almost perfect except it is designed for time of day, not elapsed time, its not correct how it looks and  behaves for elapsed time.

    Using the Masked Text box as shown below is less than ideal, since unless the user completey enters the data correctly(never happens), it will generate an error on the server side.

    Any Ideas?
    <telerik:RadMaskedTextBox ID="sesTotalTime" Label="Total Time:" runat="server" Text="<%# Bind('sesTotalTimeFormatted') %>"
        ToolTip="Total Session Time (hh:mm:ss)" Mask="##:##:##">
    </telerik:RadMaskedTextBox>



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Sep 2012 Link to this post

    Hi,

    One suggestion is that you can use 3 RadComboboxes for getting elapsed time as follows.

    ASPX:
    <telerik:RadComboBox ID="rcb_hours" runat="server"></telerik:RadComboBox>
    <telerik:RadComboBox ID="rcb_mins" runat="server"></telerik:RadComboBox>
    <telerik:RadComboBox ID="rcb_secs" runat="server"></telerik:RadComboBox>

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
       ArrayList itemsList = new ArrayList();
       for (int i = 0; i < 60; i++)
       {
          itemsList.Add(i);
       }
       rcb_mins.DataSource = itemsList;
       rcb_mins.DataBind();
       rcb_secs.DataSource = itemsList;
       rcb_secs.DataBind();
       ArrayList hours = new ArrayList();
       for (int i = 0; i < 24; i++)
       {
          hours.Add(i);
       }
       rcb_hours.DataSource = hours;
       rcb_hours.DataBind();
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bryan Kowalchuk
    Bryan Kowalchuk avatar
    19 posts
    Member since:
    Dec 2009

    Posted 25 Sep 2012 Link to this post

    The three combo box idea could work if I can make it look right (pretty)
    Thanks for the suggestion, I will give it a try. 
Back to Top