Bug 159778 - Calc autofilter does not allow to edit after last row
Summary: Calc autofilter does not allow to edit after last row
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoFilter
  Show dependency treegraph
 
Reported: 2024-02-19 21:19 UTC by jesusrop@hotmail.com
Modified: 2024-02-20 19:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
It happens with this example sheet (103.42 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-02-19 21:20 UTC, jesusrop@hotmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jesusrop@hotmail.com 2024-02-19 21:19:16 UTC
Description:
When selecting a filter in an autofiltered range, the last row becomes grayed out and no new rows can be edited.

It does not happen always, but I think it happens when the autofilter has to deal with a large amount of rows, like in the attached example.

Steps to Reproduce:
1. Select a filter in an autofilter
2. Try to edit the next row after the last row with data

Actual Results:
The next row after the last row of visible data is not visible nor editable

Expected Results:
All the rows that have not been hidden by the autofilter are not editable


Reproducible: Always


User Profile Reset: No

Additional Info:
I tried on different computers and user accounts with different OS (linux and windows).

Minimum affected version might not be 100% accurate. It stopped working somewhere in the 7.6 versions
Comment 1 jesusrop@hotmail.com 2024-02-19 21:20:27 UTC
Created attachment 192646 [details]
It happens with this example sheet
Comment 2 ady 2024-02-20 03:25:20 UTC
We used to be able to do the following procedure:

Independently of the Autofilter setting, in attachment 192646 [details] you have hidden rows.

Select All. Menu Format > Rows > Show (or use the context menu on any Row Header).

The Autofilter settings are kept as they were before, but the rows after the end of the list are now not hidden. Re-apply the AutoFilter (as its settings were not changed, so it was enough to open the filter and click OK). Now you can insert new data.

Additionally, I seem to recall some limit about AutoFilter, around 1000 rows. I am not sure about its consequences regarding this behavior.

My guess is that the new behavior, in which we cannot see the rows that follow the filtered area when using the above procedure, is a consequence of some "recent" changes to the AutoFilter feature. So IDK whether developers would consider this as a bug, or just an uncontrollable consequence. In such case, perhaps this should be an enhancement request, in order to restore the possibility of adding data while there is a filter area. Whether that would be wise, that's another matter.

Beware: in any case, if the new data should be part of the filtered area, the filter should be re-applied after the data was added anyway. I do not recall whether the new additional data is automatically added to the filtered area – I mean, without having to re-select the whole area anew.
Comment 3 ady 2024-02-20 19:59:07 UTC
One potential improvement would be to have the "(Empty)" item always available as _first_ item in the AutoFilter list, independently of whether an actual empty cell is part of the listed items.

Please note that I am not saying anything regarding the "(Empty)" item being either ON or OFF (checked, or not) in the AutoFilter list. I am only pondering whether the item should rather be always available in the first location in the list.

Having the "(Empty)" item available (to be checked/unchecked, that's another matter) would be a simple workaround to this problem in simple cases.

Since tdf#158314 is also related to the "(Empty)" item in AutoFilter, I am CC'ing Kevin Suo, who might have a possible suggestion about this issue, and might even be able to implement this idea, or to evaluate an alternative solution.