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

Enhance draggable columns functionality with parent-child relationship constraints #395

Open
anthonyboutinov opened this issue Apr 29, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@anthonyboutinov
Copy link

Issue description:

I would like to request an enhancement to the existing draggable columns functionality in RevoGrid. Currently, draggable columns allow for dragging and rearranging bottom-level headers (nested child columns) but not their parent columns. Additionally, there is no constraint preventing child columns from being dragged out of their parent column or other columns from being dragged into a nested list of columns.

Desired functionality:

Allow parent columns to be draggable along with all their child columns, treating them as one entity.
Enable dragging of child columns within their parent column, but prevent them from being dragged outside their parent column.

Current workaround:

I've encountered difficulty in finding a workaround for this issue. My attempts to extend the plugin/moveColumn/columnDragPlugin class and modify the methods have been unsuccessful, as I have not been able to import the necessary components from the @revolist/vue3-datagrid dependency. (Is it possible to import these classes to subclass them? I couldn't find anything in the documentation.) I also tried adding custom logic directly by modifying vgrid.columnPlugin, but this approach has not yielded any results either.

Additional context:

This feature will provide better support for scenarios where column groups have a strong parent-child relationship, ensuring that the organization of the data remains consistent while allowing users to rearrange columns within the constraints of their parent columns.

Thank you for considering this feature request!

@m2a2x m2a2x self-assigned this May 3, 2023
@m2a2x m2a2x added the enhancement New feature or request label May 3, 2023
@hobbitwu
Copy link

Is there any idea to get the child columns which has dragged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants