Topic: DataTable Issues

Bart Cernel free asked 5 years ago


I've noticed a lot off issues with the DataTables while working with them. A few of the properties flat out don't work in the React Version. For example, If I try to change the 'entriesOptions' parameter it doesn't actually care what I set the array to. I couldn't find if this is a known issue or not. the 'pagesAmount' parameter also does not seem to take effect. I've copied the exact code from the api page for the datatable so I don't think I'm inputting it incorrrectly.

The thing that I noticed the most was that the CSV download doesn't work properly for large datasets. It appears that the largest amount of data I can pull is 2765 rows. I can see all of the data on the front end on the website if I go through the pages, but the CSV just isn't getting them all for some reason. I do have the PRO version so it's not that I'm not allowed to use the control or anything like that.

Any help on these issues would be appreciated.

Thank You


Anna Morawska staff answered 5 years ago


Hi Bart Cernel,

I've just tried this out in the newly created project and it works fine for me - just make sure that you have enough data rows in your dataset. For example - if you set pagesAmount prop to 10, and there are only 5 pages of data, it won't work. Also, please verify, that props you pass to the MDBDataTable component have a correct type. Everything should look similar to this:

<MDBDataTable
      pagesAmount={4}
      entries={3}
      entriesOptions={[2, 3, 4]}
      data={data}
    />

Referring to the issue with CSV - will take a closer look at this, thank You for reporting the bug, we appreciate this.

Best, Ania


Bart Cernel free commented 5 years ago

I guess I didn't have the latest version of mdbreact. Updating did fix the pagesAmount and entriesOptions which was nice. However, I do still have the CSV issue. I don't know if there is some special string limit that I'm hitting and don't know about but the table shows 10000 rows but it only downloads 2765.

Thank you for your help and I appreciate the team looking into the CSV issue.


Anna Morawska staff commented 5 years ago

It's good to hear :) Yes, CSV bug is already on our TODO list, it will be fixed in one of the future releases - keep track of our changelog - we will inform there about every change in our package



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: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.11.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No