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

GridDateTimeColumn + filter

3 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 06 May 2011, 08:18 AM
Hello,

 is there anyway to have the "Contains" option in filter options for GridDateTimeColumn  ?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 May 2011, 08:55 AM
Hello Tomasz,

One suggestion is to add custom filter options ti the FilterMenu. Check out the following help article for more on this
 Custom filter options with handling

Thanks,
Shinu.
0
Tomasz
Top achievements
Rank 1
answered on 06 May 2011, 09:56 AM
Hello Shinu,

 thanks for your answer. I added the procedures that I have found under the link. For GridBoundColumn it's work - I have only the custom filter with "Contains" , but it not works for GridDateTimeColumn , when I click the filter iccon nothing appears. Does the GridDateTimeColumn not support "Contains" option in filter ?

Regards,
Tomasz

 

0
Pavlina
Telerik team
answered on 06 May 2011, 01:04 PM
Hello Tomasz,

Note that Contains filter function is used for string types and EqualTo for numeric types. For GridDateTimeColumn you can use EqualTo  filter function. Moreover, you can execute other type of filter action by setting the CurrentFilterFunction property of the corresponding column to an internally recognized value, for example:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

Greetings,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tomasz
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or