Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: groupBy with server-side pagination #46

Open
1 task done
jwijffels opened this issue Nov 27, 2023 · 1 comment
Open
1 task done

[Bug]: groupBy with server-side pagination #46

jwijffels opened this issue Nov 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jwijffels
Copy link

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

0.2.0

Platform and OS Version

Windows

Existing Issues

No response

What happened?

I'm testing this out to see if using the package makes sense.
The groupBy argument shows only the ones on the first page, that is not what you would expect.

Steps to reproduce


> table(mtcars$cyl)

 4  6  8 
11  7 14 
> ui <- fluidPage(
+     reactable_extras_ui(id = "uo_table")
+ )
> server <- function(input, output) {
+     reactable_extras_server(
+         id = "uo_table", 
+         total_pages = ceiling(nrow(mtcars) / 10),
+         data = mtcars,
+         pagination = TRUE,
+         defaultSortOrder = "asc",
+         defaultSorted = c("cyl"),
+         groupBy = "cyl")
+ }
> shinyApp(ui, server)

Expected behavior

You would expect the counts to be right at least if you add a groupBy argument and that if you sort it that it does not sort only the first page.

Attachments

none

Screenshots or Videos

image

Additional Information

none

@jwijffels jwijffels added the bug Something isn't working label Nov 27, 2023
@jakubnowicki
Copy link
Member

Hi @jwijffels, grouping rows is not supported by reactable.extras. We will check if it is possible to incorporate this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants