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

RowReorder Feature for TreeTable #7186

Closed
steve3d opened this issue Jan 30, 2019 · 16 comments
Closed

RowReorder Feature for TreeTable #7186

steve3d opened this issue Jan 30, 2019 · 16 comments
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add

Comments

@steve3d
Copy link
Contributor

steve3d commented Jan 30, 2019

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
currently the tree table only support column reorder, but I also need a row reorder function.

What is the motivation / use case for changing the behavior?
row reorder in tree table should be different than the p-table, this type of reorder need to limit the row in same hierarchy, or it can be moved up/down to another hierarchy, both behavior should be supported.

For example. I have a company with many sub departments, which might also have a sub departments. so I'm using the tree table to display the relation of each departments, but I also need to set the order of departments, so I need to limit one department can only be reordered in same hierarchy level, it can not be moved up to another department.

But if this is a folder hierarchy, I also need to move one folder up/down a level.

@lkjx77
Copy link

lkjx77 commented Sep 17, 2019

I also need this feature in my current project.

@jbjhjm
Copy link

jbjhjm commented Sep 19, 2019

Would be quite useful to easily manage all kinds of hierarchical items!
hmm, according to description of #4590 it is compatible with dragdrop module. Will try this out later.

@nkm96
Copy link

nkm96 commented Nov 4, 2019

I also need this in my projects :(

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 18, 2020
@cagataycivici cagataycivici changed the title [Feature Request] provide row reorder in p-treeTable RowReorder Feature for TreeTable Mar 18, 2020
@pablofloresrojas
Copy link

I also need it! please!

@dhaneshgosai
Copy link

Any progress or anything the team is planning to add this feature?

@IHPNULL
Copy link

IHPNULL commented Apr 21, 2022

Any progress or anything the team is planning to add this feature?

Also i need it, @mertsincan

@uebelmar
Copy link
Contributor

Would be a great feature

@NexPlex
Copy link

NexPlex commented Oct 12, 2022

Any suggestion for a work around?

@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap?
Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

@steve3d
Copy link
Contributor Author

steve3d commented Nov 10, 2022

@mertsincan are you kidding with us?

what we want is the row reorder feature for treetable, not column reorder, I've just searched the source code of treetable and the documentation, but here is nothing about the row reorder.

the feature is like this https://www.primefaces.org/primeng/table/reorder

please reopen this very old feature request.

@mertsincan
Copy link
Member

Of course not. We are currently trying to create a roadmap and if the issue has been fixed in the new version, many users may have overlooked it. For this reason, if users are still persistent and following the subject they have created, we will add them to our roadmap and examine them in detail. Most users may have finished their app with PrimeNG and have unfollowed their issues(new feature or bug). As a team, I think it would be more logical to focus directly on the problems of the people in need instead of such issues. As you know PrimeNg Open Source is a project and it has a really big and nice community. That's why you deserve better quality support. We strive for this.

Thanks a lot for the update, I'll reopen this issue.

@mertsincan mertsincan reopened this Nov 11, 2022
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 11, 2022
@eperrier
Copy link

eperrier commented Jan 3, 2023

@mertsincan any updates on timing for this feature request? Presumably it is relatively straightforward as the reoder (drag/drop) code already exists for both the datatable and tree components.

@nvynn
Copy link

nvynn commented Sep 28, 2023

@mertsincan , could you please add supporting [pReorderableRow] directive to p-treeTable?
just like this

<p-treeTable [value]="files">
  <ng-template pTemplate="header">...</ng-template>
  <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-index="rowIndex">
    <tr [ttRow]="rowNode" [pReorderableRow]="index">
      <td>
        <span class="pi pi-bars" pReorderableRowHandle></span>
      </td>
      <td>
        <p-treeTableToggler [rowNode]="rowNode"></p-treeTableToggler>
        {{ rowData.name }}
      </td>
    </tr>
  </ng-template>
</p-treeTable>

@cetincakiroglu
Copy link
Contributor

Issue tracker is used for defects only as part of our commitment to quality and continuous improvement in all areas. Enhancements are collected as valuable community feedback and managed internally so moving this enhancement ticket to our internal project management backlog.

@cetincakiroglu cetincakiroglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 31, 2023
@1Map
Copy link

1Map commented Jun 17, 2024

I see this ticket is closed, but still cannot see how to reorder rows in a treetable?

https://v3.primevue.org/treetable/#api.column.props.rowReorder

I also see that someone created another ticket on the same topic:

primefaces/primevue#5660

@uebelmar
Copy link
Contributor

I see this ticket is closed, but still cannot see how to reorder rows in a treetable?

https://v3.primevue.org/treetable/#api.column.props.rowReorder

I also see that someone created another ticket on the same topic:

primefaces/primevue#5660

primevue != primeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests