Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Column order changes when deselecting all columns from editor.

Aivars asked on July 18, 2018

When deselecting all columns from “Fields Editor” in Flat view column order changes to different one than it was before.
Steps to reproduce the bug: In this fiddle open  “Fields Editor” and uncheck “Select all”, then press apply. Result: column order has changed. Expected result – column order stays as it was before.
Best regards,

3 answers

Dmytro Zvazhii Flexmonster July 18, 2018

Hello Aivars,
Thank you for reporting this. When you deselect all the fields from the “Fields Editor” and press apply the empty slice is applied to the component. The empty slice behavior for the flat view when showDefaultSlice property is true (that property has the value true by default) is the following: the component will apply the default slice. The default slice for the flat view selects all the fields and sets the order which is equal to the fields order in the original data source. Therefore, the order is changed when you press the apply button.
However, the fact that the component allows setting the empty slice means that the behavior is not correct. We are going to add the necessary update which should deactivate the apply button when it is an incorrect slice in the “Fields Editor”, ETA Aug 13. The component should not allow setting an empty slice from the “Fields Editor”. The same behavior is in the compact and classic view.
Please let us know in case you have any other question.

Dmytro Zvazhii Flexmonster August 13, 2018

Hello Aivars,
We are glad to inform you that the version with the fix has already been released. You are welcome to update the component.

Aivars August 14, 2018

Thank you!

Please login or Register to Submit Answer