224
Views
4
Comments
Solved
[OutSystems Data Grid] Column re-order event listener
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Is there a way to listen to column re-order event?
My columns are dynamic using a list and the column are inside that list.
I would like to save the order of the columns accordingly.
And the solution I can think about is to listen to an event if the column is re-ordered then update the record in my source list.


Appreciate your help



2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Christian Meniano 

Did you get the chance to try the  OnColumnReorder event that is now exposed in the column blocks and that was released in version 2.9.0? It was created based on feedback similar to yours and I think will help in these use cases.

Cheers,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Christian Meniano 

As far as I saw on a really quick look at the Wijmo documentation, it seems you can try to use this event https://www.grapecity.com/wijmo/api/classes/wijmo_grid.flexgrid.html#draggingcolumn 

Edit: you can try it out here https://jscodemine.grapecity.com/sample/bne-Fb2Z2kyLZg4S3B_ZZg/ 

Cheers,
GM

2020-08-05 09-00-16
Gabriel Lundgren

Hey @Christian Meniano,


What would you need for this event to return? The column's new position?

2024-07-20 14-55-39
Christian Meniano

Yes, my columns are inside the list. And what I plan to do is to update the list record so I can update my database according to the position

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Christian Meniano 

Did you get the chance to try the  OnColumnReorder event that is now exposed in the column blocks and that was released in version 2.9.0? It was created based on feedback similar to yours and I think will help in these use cases.

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.