Comments (9)
This library doesn't support this use-case. This library drills down data for whole row, but you want to drill down for a set of columns. I keep this issue open and if more people ask for this feature, I will consider to implement it. Currently, I don't have a free time for open-source work.
from nested-datatables.
Thanks for the response @AndrejGajdos If I removed the first 3 columns in the mockup and just drilled down each row would this example work? I'm curious if I can turn off the pagination and other features of the nested tables to achieve a clean look.
from nested-datatables.
Actually you don't need to remove columns. If you try it out, it will work but it will look a bit different.
There is a space between an expanded row and child table and columns in child table doesn't depend on parent table or data in expended row. With that being said, columns in child table are not aligned with columns in parent table, but if you change some css you can achieve very similar visualization.
For example row with values "Campaign #23423423 Events and Marketing" and "$40.86" needs to be defined as a child table. The row "Order #3242342", "Order Qty", "$40.86" can be defined as a child table or you can define this row as a header for the child table Imgur.
You can customize datatable settings (turn off pagination, etc), by settings
object:
var settigns = {
"iDisplayLength": 20,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false
};
var table = new lib.NestedTables("example", dataInJson, settigns);
table.initializeTableHierarchy();
from nested-datatables.
Hi @AndrejGajdos ,
Feel happy to see this example of nested datatables
How could I be able to call the server side data without using the json data in the client side?
from nested-datatables.
Hi @AndrejGajdos,
is there any way to update the column name in the table
from nested-datatables.
@mahjnalisha it is not possible to use this library without data in json format. You need to use ajax to get data from server to client. As soon as you have json data on client, you can edit json object and rename columns.
from nested-datatables.
@AndrejGajdos ,
how could I be able to work on different tables data. I need to add some css class on the nested table thead th section. How could I achieve that and can you show how could I be able to rename the column in the client side if it is nested rows?
from nested-datatables.
@AndrejGajdos ,
How can I be able to the add the buttons in the table
from nested-datatables.
@mahjnalisha here you can see how to add styles into inner table https://jsfiddle.net/zu11wk2o/256/ and here you can see how to add html elements into table cell https://jsfiddle.net/zu11wk2o/249/
from nested-datatables.
Related Issues (13)
- Select event handler..? HOT 2
- Can you use columnDefs with this? HOT 1
- using external JSON data HOT 1
- Cannot initialize plugin HOT 1
- Editable nested datatable? HOT 2
- nested.datatables.min.js file not found HOT 3
- Getting Error Uncaught TypeError: Cannot read properties of undefined (reading '0') on data update HOT 1
- onShowChildHierarchy handler HOT 1
- nested-datatables / IE11 HOT 7
- Having multiple nested tables causing error. HOT 5
- How to include checkbox / input in cells of the nested table? HOT 2
- Adding sorting arrows on the table headers HOT 4
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 nested-datatables.