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

[Solved] mvc edit template for timespan

1 Answer 85 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 01 Apr 2011, 12:23 PM
I need a timespan edit template and was looking at the timepicker, however it only allows increments of one minute and i need detail down to seconds, however I would like some control over the input and was considering using 2 or 3 numerictextbox.integers to display the entered timespan.

However im not sure how to implement this?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 06 Apr 2011, 01:44 PM
Hello Michael,

 
You can change the format of the TimePicker in order to show and also allow to change seconds.

As to the question about integer inputs. In order to achieve your goal you will need to set hours, minutes and seconds to each input element. I will suggest you use javascript to update hidden input element which will contains the whole value and the hidden input will be named as the name of the model. Thus will be easy to get updated value to the server. You can try to implement this with normal Html.TextBox components. If you accomplish this task, then I will help you how to integrate NumericTextBox components.

Kind regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Date/Time Pickers
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or