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

Change filter search text format of GridViewColumn

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hrant
Top achievements
Rank 1
Hrant asked on 07 Mar 2017, 11:04 AM

Hi,

I have a column which DataType is TimeSpan, TimeSpans are displayed in military time format("hhmm"), however when user types 2000, filter interprets it as 2000 days 0 hours 0 minutes 0 seconds(2000.00:00:00). Filter checkBoxes also display values in the format specified. How can I make filter parse 2000 as 0.20:00:00?

Is there an easy way to do this?

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 09 Mar 2017, 11:35 AM
Hello,

Unfortunately, with the current implementation of the filtering mechanism, there's no way to specify the way the filter parses the values.

What I can suggest in this case, in order to get a consistency between the distinct values and the filter input boxes, is to set the FilterMemberPath property to TimeSpanProperty.Hours, as suggested in this article.

I hope you find such an approach applicable.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Hrant
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or