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

[Solved] Datagrid Adding default filter to filter template

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
greytroll
Top achievements
Rank 1
greytroll asked on 06 Feb 2011, 05:51 AM
I am using date range filter from this example

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx it has 2  datepickers for From and To.

I want to add also regular filter or date picker fo this column too.Otherwise, how do i filter just the date not date range?
Just found this post
http://www.telerik.com/community/forums/aspnet-ajax/grid/filter-with-from-and-todate-for-datetime-colum-with-normal-datepicker-filter.aspx

Dont think it provides elegant solution


Thank

Alex

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 10 Feb 2011, 10:45 AM
Hi greytroll,

If I properly understood, you want to have one column which is to be filtered either by one date or for date range. In this case, you can use a regular GridDataTimeClumn with the default filter and enable the header filter menu to provide a functionality for additional filtering.
Another option is to add two RadDatePickers in the FilterTemplate and when they are both filled, apply the date range filter. Otherwise, filter by the date filled in one of them.

Kind regards,
Iana
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
greytroll
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or