Hi,
I want to customize the options of date filter dropdown. I just want "Is before" and "Is after". How can i do that? Right now i am doing it this way:
{
field: "DateCol",
title: " Date",
template: '#= kendo.toString(DateCol, "MM/dd/yyyy hh:mm:ss")#',
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
date: {
lt: "Is before",
gt: "Is after"
}
}
}
}
This shows only the options that i have written but the Problem is that it doesn't filter. What is the issue? Pls help.
Regards,
Khushali
I want to customize the options of date filter dropdown. I just want "Is before" and "Is after". How can i do that? Right now i am doing it this way:
{
field: "DateCol",
title: " Date",
template: '#= kendo.toString(DateCol, "MM/dd/yyyy hh:mm:ss")#',
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
date: {
lt: "Is before",
gt: "Is after"
}
}
}
}
This shows only the options that i have written but the Problem is that it doesn't filter. What is the issue? Pls help.
Regards,
Khushali
6 Answers, 1 is accepted
0
Hello Khushali,
Indeed this is the right way to control/modify options in filter menu. The default values for date type are as follow:
The operators set by configuration will override the predefined ones in order to control which options to be visible in the dropdowns.
Regards,
Nikolay Rusev
the Telerik team
Indeed this is the right way to control/modify options in filter menu. The default values for date type are as follow:
date: {
eq:
"Is equal to"
,
neq:
"Is not equal to"
,
gte:
"Is after or equal to"
,
gt:
"Is after"
,
lte:
"Is before or equal to"
,
lt:
"Is before"
}
The operators set by configuration will override the predefined ones in order to control which options to be visible in the dropdowns.
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Khushali
Top achievements
Rank 1
answered on 02 Apr 2012, 08:36 AM
Hi,
It is right now showing the options that i have defined. But, It is not filtering. It filters only when all the options are present.
Regards,
Khushali
It is right now showing the options that i have defined. But, It is not filtering. It filters only when all the options are present.
Regards,
Khushali
0

Khushali
Top achievements
Rank 1
answered on 02 Apr 2012, 10:51 AM
Hi,
I checked it. It is working only when i make extra: true. Otherwise not. Attaching the demo for the same.
Regards,
Khushali
I checked it. It is working only when i make extra: true. Otherwise not. Attaching the demo for the same.
Regards,
Khushali
0
Hello Khushali,
Filtering on BirthDate column with extra set to false seems to be working to me.
Greetings,
Nikolay Rusev
the Telerik team
Filtering on BirthDate column with extra set to false seems to be working to me.
Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Khushali
Top achievements
Rank 1
answered on 03 Apr 2012, 12:54 PM
I think it is working in few browsers only. It is still not working in my browser. It gives some error. I am using Firefox 3.5.2.
Regards,
Khushali
Regards,
Khushali
0
Hello,
I don't think that Kendo UI widgets have support for Firefox 3.5.2. You can find the list of supported browsers at the bottom of the following page: http://demos.kendoui.com/
Regards,
Nikolay Rusev
the Telerik team
I don't think that Kendo UI widgets have support for Firefox 3.5.2. You can find the list of supported browsers at the bottom of the following page: http://demos.kendoui.com/
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!