Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any examples of tree tables? #178

Closed
simplew11 opened this issue May 7, 2019 · 8 comments · Fixed by #455
Closed

Any examples of tree tables? #178

simplew11 opened this issue May 7, 2019 · 8 comments · Fixed by #455

Comments

@simplew11
Copy link

simplew11 commented May 7, 2019

I'm submitting a feature request
tree tables:TreeTable is used to display hierarchical data in tabular format.
for example:
image

@ghiscoding
Copy link
Owner

ghiscoding commented May 7, 2019

I only made the Grouping example, but if you look at the core lib Example and the code, it seems to be easy enough, they use a custom TaskNameFormatter and that is about it.

I don't have the time and I don't see the point of recreating every single examples of the core lib, I only replicated the most popular ones.

@ghiscoding
Copy link
Owner

ghiscoding commented May 24, 2019

I took a stab at it a week ago but that is much bigger than I anticipated. If doable, the Grouping feature is the only viable feature right now that is similar.

What I got working, but is probably not a good use case, is to expect the dataset to have a parent property (root is null), where all the child have this parent filled with the id of the parent. The problem is that the dataset must be sorted and all parent must be a row as well (again sorted), The Sort itself (in the grid) also doesn't work and most probably the Export to CSV would be all broken. There is also no aggregation of a column yet (sum)

I don't think this is a good solution, but if you want to take a look at it, I can upload it.

@Sakkanan
Copy link

Can you please share your sample?

@mayankgirdhar

This comment has been minimized.

@ghiscoding

This comment has been minimized.

Repository owner locked as off-topic and limited conversation to collaborators Dec 22, 2019
Repository owner unlocked this conversation Jan 6, 2020
@ghiscoding ghiscoding added the wip label Apr 2, 2020
@ghiscoding
Copy link
Owner

ghiscoding commented Apr 6, 2020

I would like to point out that this is a Work in Progress and I cannot release until I find how to Filter and Sort in a tree structure (possibly in a recursive fashion). I have an open Stack Overflow question, How to filter multiple properties of a parent child array which could be several tree level deep and if I can get an answer to it, I would definitely help in pushing this new feature.

I kinda have Filtering/Sorting on the column that has the tree data, but I cannot filter/sort on any other column(s) from the grid.

So please help if you can and answer the SO question (it's been answered) and if you know how to fix it. Thanks.

Some demos can be seen here and here however, these demos have the issue that I wrote in first paragraph. not anymore, the Filtering is now done, now left with Sorting & Aggregation.

Progess

  • Tree Data View
  • Tree Data Filtering
  • Tree Single Column Sort
  • Tree Multi-Column Sort
  • Aggregators for Totals

@ghiscoding
Copy link
Owner

This feature will be available shortly, possibly today, but it won't have the 2 things that I've mentioned in earlier post (multi-column sort, aggregators), it might in the future but not at this point. I really wish people would contribute but it seems that no one is interested to do so 😢

ghiscoding added a commit that referenced this issue May 19, 2020
* feat(treeData): add new Tree Data View feature
@ghiscoding ghiscoding removed the wip label May 19, 2020
@mvgadagi
Copy link
Contributor

Thanks @ghiscoding for your efforts !!, and providing us this feature very quick :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants