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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

150061 Dec 19,2019 06:25 AM UTC Dec 19,2019 06:45 AM UTC Angular - EJ 2 1
loading
Tags: Grid
Shreekumar
Asked On December 19, 2019 06:25 AM UTC

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)

Pavithra Subramaniyam [Syncfusion]
Replied On 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. 
 
Regards, 
Pavithra S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon