We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Excel Like Filter in Grid Column Giving Error if Column contains some blank / empty data

I'm using Grid Control with Excel Like Filter

If I click on Filter Icon and mouse over on "Text Filters" I'm getting following error:" (On if column contains some blanks / null / empty data)

main.a1f1847e25aef1b98561.js:1 TypeError: Cannot read property 'length' of undefined
    at t.getCMenuDS (main.a1f1847e25aef1b98561.js:1)
    at t.hoverHandler (main.a1f1847e25aef1b98561.js:1)
    at e.invokeTask (polyfills.73b3aeabbeaddf4bfcc2.js:1)
    at Object.onInvokeTask (main.a1f1847e25aef1b98561.js:1)
    at e.invokeTask (polyfills.73b3aeabbeaddf4bfcc2.js:1)
    at t.runTask (polyfills.73b3aeabbeaddf4bfcc2.js:1)
    at t.invokeTask [as invoke] (polyfills.73b3aeabbeaddf4bfcc2.js:1)
    at y (polyfills.73b3aeabbeaddf4bfcc2.js:1)
    at HTMLDivElement._ (polyfills.73b3aeabbeaddf4bfcc2.js:1)

1 Reply

PS Pavithra Subramaniyam Syncfusion Team December 19, 2019 06:45 AM UTC

Hi Shreekumar, 
Greetings from Syncfusion support. 
In Essential JavaScript 2 Grid excel filter, the text filter menu list will be rendered based on the column type. From your query we suspect that you haven’t define the column type and the first value of the column is null/empty. If the column type is not defined, Grid will automatically get the type from the first value but if the value is empty type cannot be calculated. So we suggest to define the column type for those columns have the null/empty as first value. Please refer to the below documentation for more information.  
Please get back to us if you need further assistance. 
Pavithra S. 

Live Chat Icon For mobile
Up arrow icon