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

Grid Column custom filter

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 12 Nov 2013, 04:25 PM
I'm working with a Date Column thats part of the Data Grid. I'm using the following filter for my DateClosed Column. The template display a button in the column cell if the DateClosed value = '01/01/0001' and the date closed value when its not equal to that '01/01/0001'.
My problem is I want to allow users to filter to only show the Closed or Not Closed records. Records. 
Using the ui: datepicker does not allow me to do this. 
please help
Grid....
 {
                           field: 'DateClosed',
                           title: 'Closed',
                           format: '{0:MM/dd/yyyy}',
                           filterable: {
                               extra: true,
                               ui: 'datepicker'
                           },
                           template: kendo.template($("#closeActionItem").html())
                       },

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 14 Nov 2013, 05:51 PM
Hello Bradley,

I am afraid that what you would like to achieve is not supported out of the box. The datePicker widget allows you to select manually and filter by a chosen by the user date. If you want to filter by closed/opened records you should create a boolean field that indicates the records state.

Then the filter menu will automatically generate radio box filter allowing the user to choose opened or closed. You can see how the filter menu looks like in the following demo, last column:

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Bradley
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or