Skip to content

Can only filter data viewer columns that are in the current visible frame #6147

Closed

Description

@adamconroy

System details

RStudio Edition : Desktop
RStudio Version :  1.3
OS Version      :  Windows 10
R Version       :  3.5.2

Steps to reproduce the problem

  1. Create a data frame larger than 50 columns
    testData = data.frame(logicalVar = sample(c(T,F), size = 10, replace = T), doubleVars = matrix(rnorm(500), 10))
    View(testData)

  2. Filter column 1

  3. Click the >> forward frame button to view columns 2-51

Note that the filtering is lost

Describe the problem in detail

We currently do not have any saved state when changing a view frame. The grid_data call on column shift is [mostly] stateless so when we change frames that filtering data is lost. Adding state here won't be entirely trivial so I'm making an issue for it.

This will be a bit tricky as the client only has the column data zero-indexed within the current frame that it's viewing and the server side shifts it up. We would have to find some way to fake negative indices or find a way to save it server side until a reset it called. It's a bit awkward at the moment.

Describe the behavior you expected

All set filters are saved between frame pages.

Activity

  1. self-assigned this
    on Feb 4, 2020
  2. francisbarton commented on Jun 12, 2020

    @francisbarton

    Came here to report this same issue, and glad to see @adamconroy has already submitted such a thorough report. I know you're not supposed to comment on issues just to say "+1", but it is an annoying problem and it would be great to see it fixed when possible. Thanks to all who are working on RStudio.

  3. stale commented on Feb 4, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  4. added
    stale
    on Feb 4, 2021
  5. francisbarton commented on Feb 9, 2021

    @francisbarton

    Seems like there was a whole bunch of activity and interest in this and related Data Viewer issues so it feels reasonable to keep this alive?

  6. removed
    stale
    on Feb 9, 2021
  7. added this to the 2022-2H milestone on Sep 29, 2021
  8. francisbarton commented on Jan 12, 2022

    @francisbarton

    By the way, i discovered today that sorting also isn't maintained while paging.
    (Edit: this was already pointed out in #7306, sorry)

  9. removed this from the 2024 milestone on Jun 21, 2022
  10. 7 remaining items

  11. luisvalenzuelar commented on Jun 21, 2024

    @luisvalenzuelar

    Although labelled as an enhancement, it is really a faulty behaviour because it can seriously mislead the user, as it is an unexpected behaviour. I think this deserves more urgency than "backlog/later".

  12. kellytdunn commented on Aug 28, 2024

    @kellytdunn

    Agreed, I just discovered that sorting is not retained when scrolling to columns 51 + and am bothered by this.

  13. removed this from the Later milestone on Aug 28, 2024
  14. added this to the Later milestone on Sep 5, 2024
  15. jthomasmock commented on Sep 5, 2024

    @jthomasmock
    Contributor

    Thanks for your interest! We will be looking at the Data Viewer for general improvements in the future (as seen from #7600)

  16. added theissue type on Jun 14, 2026
  17. modified the milestones: Later, Blue Plumbago on Jun 14, 2026
  18. added a commit that references this issue on Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions