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

Filter time duration

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sloth1
Top achievements
Rank 1
sloth1 asked on 17 Dec 2014, 09:30 AM
I want to filter time duration column in my Grid, which is displayed using toHHMMSS().

The default filter requires input in seconds, so the user have to type 4810  instead of  01:20:10 to represent   1 hour 20 min and 10 secs.

How can I change it to be user friendly?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Dec 2014, 07:20 AM
Hi Joseph,

For the requirement that you have you could either change your data type in the underlying database to a DateTime and use a GridDataTimeColumn with PickerType="TimePicker" or use custom filter template and manually handle the user input and convert it to a valid for the filtering one.

Following are some help articles that could help you with your requirement:
Hope this helps.


Best Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
sloth1
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or