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

External or Custom search (filtering) not working on Date fields of Kendo Grid

1 Answer 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rajini
Top achievements
Rank 1
Rajini asked on 13 Oct 2015, 06:26 AM

Hi,

I am using Ken-do Grid in my web application using ASP.Net. I have string, date and number type columns. I am able to filter or search on each individual column including date fields working fine. But i have requirement like user should able to search in all the columns at a time. Means need to provide a text box to enter some text, based on this text need to search on all the columns. User can enter full value or part of it. For date fields.. user can enter 13/10, here we need to search all the columns which are having 13/10 including date fields and display the rows. I have used column filters for this. That is working fine for only string fields not working for date and number fields. I have date fields also in my grid. But i am unable to search or filter on date and number fields. If i would have date fields in the filters group i am getting " 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'toLowerCase' ". I have found issue like "We are entering some part of date as a string in the text box. It cannot be converting as a date type" as of my knowledge. So how can i achieve external filtering on date fields in kendo grid. Do we have any other alternate to this. Please provide me the solution. Following is the code snippet for filtering which i am using:

                      {
                          field: "Account",    ---> It is a string type. Working fine.
                          operator: "contains",
                          value: val              ---> search value
                      },
                      {
                          field: "Due",        ---> it is a date field which is not working
                          operator: "contains",
                          value: val            ---> Search value
                      },

 

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 15 Oct 2015, 01:12 PM
Hello Rajini,

Please note that these are the forums of the Telerik Platform product used for developing mobile solutions. It seems like your question is related to using the Kendo UI Grid in a web project, so I advise you to post in the Kendo UI Grid forum or in a public discussion board like Stack Overflow.

Regards,
Tsvetina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Rajini
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or