GithubHelp home page GithubHelp logo

[FEAT] Reorder columns about ag-grid HOT 33 CLOSED

ag-grid avatar ag-grid commented on May 18, 2024
[FEAT] Reorder columns

from ag-grid.

Comments (33)

nsteenbeek avatar nsteenbeek commented on May 18, 2024 2

@Wykks
Is possible on:
Grid level: suppressMovableColumns: true (https://www.ag-grid.com/javascript-grid-properties/index.php)
Column level: suppressMovable: true

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024 1

Thanks cnd5041 for your input, it's deffo on my 'to do' list . . . . just finishing 'checkbox selection' at the mo, next on my list is 'cell selection and keyboard navigation'.

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

Agreed, will put in at some point. Thinking a popup with two lists for now,
with 'add' / 'remove' columns as well re-ordering. Then dragging columns
would be a nice 'show off' feature.

On 8 March 2015 at 02:23, Austin [email protected] wrote:

Column re-ordering would be a nice feature, you already have resizing.


Reply to this email directly or view it on GitHub
#6.

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Statements and opinions expressed in this e-mail may not
represent those of the sender. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender immediately and delete
the material from any computer.

from ag-grid.

cnd5041 avatar cnd5041 commented on May 18, 2024

Just wanted to second the request for the column re-ordering / dragging re-order.
Haven't implemented yet but looks awesome, thanks for making it!

from ag-grid.

brianfeister avatar brianfeister commented on May 18, 2024

+1 for this... was thinking the same

from ag-grid.

vikasmur avatar vikasmur commented on May 18, 2024

I want to use the column reordering feauture using drag drop in my app.
Could you please let us know the request's status / priority.
Thanks in advance.

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

status: not started. priority: medium. estimate: two or three months from now.

from ag-grid.

sbowler avatar sbowler commented on May 18, 2024

Any updated time frame on this?

from ag-grid.

victordelacruz avatar victordelacruz commented on May 18, 2024

+1 on column reordering!

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

you can reorder using the toolpanel

from ag-grid.

victordelacruz avatar victordelacruz commented on May 18, 2024

Excellent, just tried the new Test Drive! :)

from ag-grid.

killyosaur avatar killyosaur commented on May 18, 2024

+1 on draggable Reorder of columns (not having to use the toolpanel).

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

+1 . . . on my list

from ag-grid.

mikeerickson avatar mikeerickson commented on May 18, 2024

+1

from ag-grid.

scotthovestadt avatar scotthovestadt commented on May 18, 2024

+1

from ag-grid.

victordelacruz avatar victordelacruz commented on May 18, 2024

+1

from ag-grid.

matatron avatar matatron commented on May 18, 2024

+1

from ag-grid.

jasdeepsingh avatar jasdeepsingh commented on May 18, 2024

+1

from ag-grid.

epernice avatar epernice commented on May 18, 2024

+1

from ag-grid.

lucaalex87 avatar lucaalex87 commented on May 18, 2024

Guys, you have custom header renderer, you can implement drag&drop there, and call gridOptions.columnApi.moveColumn(fromIndex, toIndex) on ondragover.

I'm working on something like this just now. But it's with angularCompileHeaders: true also.

http://www.ag-grid.com/angular-grid-header-rendering/index.php

from ag-grid.

lucaalex87 avatar lucaalex87 commented on May 18, 2024

Here you go, a simple example:

http://plnkr.co/edit/S9Qjno?p=preview

from ag-grid.

liratanak avatar liratanak commented on May 18, 2024

+1
Thanks @lucaalex87, really nice example

from ag-grid.

andrea-bologna avatar andrea-bologna commented on May 18, 2024

+1 is there any estimation about that?

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

dragging column headers will be in in the next week or two. it's the next 'big ticket' item i'll be doing.

from ag-grid.

Wykks avatar Wykks commented on May 18, 2024

Works great with the lastest version, thanks !
Can you add an option/api to disable/enable this manually ?

from ag-grid.

Wykks avatar Wykks commented on May 18, 2024

Whoa I missed that. Thanks ! :)

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

closing this issue, complete :)

from ag-grid.

nsteenbeek avatar nsteenbeek commented on May 18, 2024

I found an issue.
Using ag-grid.min.noStyle.js: dragging column moves only the header and not the whole column.
Using ag-grid.min.js: dragging column moves whole column (expected)

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

that's really strange, the only difference is 'noStyle' doesn't contain the css.

are you including the css yourself directly then?

from ag-grid.

ceolter avatar ceolter commented on May 18, 2024

@nsteenbeek i've just tested, it works fine for me

from ag-grid.

nsteenbeek avatar nsteenbeek commented on May 18, 2024

@ceolter My fault! Forgot to update the ag-grid.css. That's why the version including styles worked. Thumbs up for ag-grid!

from ag-grid.

chenokn avatar chenokn commented on May 18, 2024

Thanks cnd5041 for your input, it's deffo on my 'to do' list . . . . just finishing 'checkbox selection' at the mo, next on my list is 'cell selection and keyboard navigation'.

For keyboard accessibility.
Column re-ordering would be a nice feature with keyboard.

from ag-grid.

AG-Zoheil avatar AG-Zoheil commented on May 18, 2024

Thank you for your comment @chenokn.

You'll be pleased to know that we are looking to add this functionality with our next v31 release. I have added the backlog item reference to this Github issues for your reference.

from ag-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.