Comments (6)
Add
key_column: '_id'
in config object
from react-datatable.
Please add id as a key in your record collection.
Please refer example below:
[
{
"id": "55f14312c7447c3da7051b26",
"address": "228 City Road",
"address line 2": "Cardiff",
"name": ".CN Chinese"
},
{
"id": "55f14312c7447c3da7051b27",
"address": "376 Rayleigh Road",
"address line 2": "Essex",
"name": "@ Thai"
}
]
from react-datatable.
this.config = {
page_size: 20,
length_menu: [20, 40, 60],
show_filter: true,
show_first: true,
show_pagination: true,
key_column: 'booking_id',
button: {
excel: false,
print: false,
},
};
from react-datatable.
but I have _id in my table as per mongo db so my record is like
[
{
"_id": "55f14312c7447c3da7051b26",
"address": "228 City Road",
"address line 2": "Cardiff",
"name": ".CN Chinese"
},
{
"_id": "55f14312c7447c3da7051b27",
"address": "376 Rayleigh Road",
"address line 2": "Essex",
"name": "@ Thai"
}
]
from react-datatable.
Yes, but the plugin does not understand _id, its required id for every record.
from react-datatable.
Please update your library asap because mongo support _id not id so your library is not compatible with a feature rich MERN application.
from react-datatable.
Related Issues (20)
- How can i Specify the column maximum width
- 0 not showing in Table
- Displaying nested Object Key
- Is your documenttation site hacked or something???
- Does this datatable support to 18 react version
- Each child in a list should have a unique "key" prop. (on extraButtons) HOT 1
- Incompatibility with bootstrap and Font Awesome 5.x HOT 1
- 0 Int not renders HOT 2
- How can we Add checkbox and select all rows HOT 1
- how do i add scroll on x-scale
- Problem on changing the results per page when the user is in another pagination,
- Is it possible to highlight text base on filter input?
- How to get data from nested json objects HOT 2
- show_filter and show_last not working on false
- This project is dead? HOT 4
- Eliminate y update row ?
- Is this dead?
- React CSV download from Cell tag HOT 1
- How can filter be implemented for the columns?
- Custom Header and Footer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-datatable.