Javascritp error in performing column filter

Hello,

I've created a grid with excel type filtering and server side filter operations.
I've recently upgraded the javascript to the version [15.4.0.17], using https://csg.syncfusion.com/

I've noticed the following error:
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
    at t.excelFilter._setCheckState
    at t.excelFilter.replacer
    at t.excelFilter._setCheckBoxList
[...omiss...]

I've attached the screenshot of  the error.

Step to reproduce:
  1. Create a grid with excel type filtering, UlrAdaptor to get the data.
  2. Populate the grid with some data, with a column, say column A, with some null values.
  3. Click on the filter icon of column A, uncheck blanks.
  4. Click the filter icon of column A again after the grid performed the filtering, the error shows in console.


To work around  this, we edited the downloaded file, adding to the following funciton:
_setCheckState: function (value) { ... }

the following lines (after this one :" val = this.processValue(splts[splen]); " ):
 if (!val) {
     val = '';
}


Attachment: 20171214_174323_aa20bd6f.zip

2 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 15, 2017 05:10 PM UTC

Hi Chiara, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your query and we can reproduce your reported problem “Script Error throws ‘Cannot read property 'toLowerCase' of undefinedwhile filtering blank values”. We have logged this issue as release breaker and fix for this issue will be included in our 2017 Volume 4 Service Pack 1 release which is expected to be roll out at the end of December. 
 
Regards, 
 
Farveen sulthana T 



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 27, 2017 12:42 PM UTC

Hi Chiara 
 
We are glad to announce that our Essential Studio Volume 4, Service Pack 1, 2017 (Version 15.4.0.20) is rolled out and is available for download under the following link. 
 
                                              
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
 
Farveen sulthana T 


Loader.
Up arrow icon