ce icon indicating copy to clipboard operation
ce copied to clipboard

setData with hidden columns shows incorrect values

Open lhassis opened this issue 3 years ago • 4 comments

Hi everyone!

When I set data into a table that has hidden columns, the new data is, at first, shown on incorrect columns. Data follows the visible columns order and not the name property. After a change in the visibility status, data is correctly organized. An example. Columns Start, Finish and Duration. image

If I hide Finish column and load data into table again, values from finish are show on Duration column. image

And by changing finish column visibility, data are back on the correct columns.

In addition, the filter options remain the same, after hiding columns, as shown below. Before hiding "Finish" column image

After hiding "Finish" column image

Is this an issue or is there any workaround that I should be doing? Thanks in advance.

lhassis avatar Mar 10 '21 13:03 lhassis

Hi everyone! For the data problem we did a "workaround" showing all columns before setting data and then hiding again the ones that were previously hidden. For the filter problem we made a 2 line change on hideColumn and showColumn functions and we're submitting a pull request. https://github.com/jspreadsheet/ce/pull/1337

vettadigital avatar Mar 11 '21 21:03 vettadigital

I just ran into this same issue. I guess no one is going to merge #1337?!

Valkah avatar Jul 28 '21 19:07 Valkah

I just ran into this same issue. I guess no one is going to merge #1337?!

I will release a patch including this one.

hodeware avatar Jul 28 '21 19:07 hodeware

Any fix on this?

amalinaaziz avatar Nov 10 '21 09:11 amalinaaziz