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

How to sort using hours, minutes, seconds?

3 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 28 Jun 2011, 09:37 AM

Hi

I have in my object couple columns of type DateTime.  I use built in functionality for sorting. On the column header user can type date. My problem is that I can define only date, hours, minutes and seconds are always zero (take a look at the screenshot).

Is there any possibility to let the user define also hours?

 

Regards

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin Vasilev
Telerik team
answered on 01 Jul 2011, 09:06 AM
Hello Raymond,

Thank you for writing.

I suppose that actually you mean "filtering" rather than "sorting"? In this case, RadGridView does not support the required functionality out of the box. However, you can take a look at the custom filtering, which will allow you to customize the filter functionality according to your needs.

Let me know if you have any additional questions.

All the best,
Martin Vasilev
the Telerik team
Registration for Q2 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting July 18th and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Raymond
Top achievements
Rank 1
answered on 01 Jul 2011, 09:10 AM
Yes I have problem with filtering - sorry my mistake.

I cannot use custom filtering because user even cannot type hours, minutes and seconds if column type is DateTime.

I would have to change data type to string and then use custom filtering.

0
Martin Vasilev
Telerik team
answered on 06 Jul 2011, 01:35 PM
Hello Raymond,

Thank you for getting back to me.

It seems that the implementation of your requirement using the standard filtering functionality is not possible. Although the default filtering editor can be changed for a specific cell, the filtering cannot be customized to accept different than the expected data format. Moreover, by default we are using a customized DateFilterExpression, which deliberately eliminates the time part since that was the most popular functionality that our customers asked for.

Nevertheless, we will consider improving our built-in filtering capabilities in order to cover scenarios like yours in one of the next releases. I am considering this as a feature request and I am updating your Telerik points for bringing our attention on this.

Best wishes,
Martin Vasilev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Raymond
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Raymond
Top achievements
Rank 1
Share this question
or