Topic: Datatable problem search

JackZeled0n pro asked 5 years ago


Expected behavior Filter the elements in the datatable

Actual behavior I have some null values ​​in my list of elements, this causes that when typing text in the search field, an error is generated in method searchLocalDataBy and searchDataObservable of tableService, because your method performs a tostring to a null value.(first image).

In my opinion, this error should not occur, should omit the null value in the search and move forward with the other values ​​to be filtered.

As a temporary solution, modify your method a little to accept null values in the filter(second image).

attached gif about the error. Please, help me with the error, thanks for your time !!

Resources (screenshenter link description hereots, code snippets etc.) firs image

enter image description here

enter image description here


Damian Gemza staff answered 5 years ago


Dear Jack,

You have two possible workarounds for your situation:

1st) Prevent nulls from being displayed in your table (don't know how - maybe filter if data is null?)

2st) Write your own table filter function (this is not the best workaround) until we'll resolve this problem.

We have to fix it on our end, so we can't provide the fix for it in some spare time (the next release of MDB Angular will be in two next weeks).

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.2
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes