Grid Filter Menu does not open and causes endless spinner

Hi,

in some cases the dropdown filter menu does not open and causes an endless spinner for some columns. We get an "Cannot read properties of undefined (reading 'length')" in DropdownList.beforeOpen inside the modul. But the datasource values are always given. 

In the examples(see screenshot) there are different grids, in one it works for the "description" column in the other it doesn't. The values types for the columns are almost the same (null, string,..). I can't see any differences here and unfortunately no reason for it either.

Whats the reason for this behaviour?


Thank you for your help


Kind regards

Fabian




Attachment: dropdownGridSpinner_c2681a1e.zip

3 Replies

SK Sujith Kumar Rajkumar Syncfusion Team January 19, 2022 12:07 PM UTC

Hi Fabian, 

Greetings from Syncfusion support. 

From the shared information we could see that you have set null values to the column cells and facing issues on filtering. The reported problem occurs if the first data of a column is null/undefined and column type is not set to it. If the first row of a column contains undefined or null then column type needs to be defined for that as with this initial row data only the column type will be set and based on the column type the Grid actions like, Filter, Sort, etc., will be performed. So if null or undefined value is present for a column in the initial row data and column type is not set for that, then the type will be set as ‘null’ which causes problems. So you can resolve this problem by setting the column type in-case where the first row data has null or undefined value. 

More details on the available column types can be checked in the below documentation link, 
 

If problem still persists even after setting column types, then please share us the following information to validate further, 

  • Share us the code snippets for the three Grids rendered in your application.
  • Share us first row data bound to the three Grids and let us know for which columns the reported problem is occurring.
  • Let us know the Syncfusion package version used.

Regards, 
Sujith R 



AW Andreas Weber January 20, 2022 09:09 AM UTC

Hi Sujith,

thank you for your great support. By setting the "column type" for effected columns it works fine.


Regards,

Fabian  



SK Sujith Kumar Rajkumar Syncfusion Team January 21, 2022 04:49 AM UTC

Hi Fabian, 

You’re welcome. We are glad to hear that your query has been resolved. 

Regards, 
Sujith R 


Loader.
Up arrow icon