-
Notifications
You must be signed in to change notification settings - Fork 180
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
Sorting a reordered column (w/ ColReorder) sorts column at original position #1069
Comments
Figured this is another broken extension when
Then reorder column @yihui Can you please check whether this works for you? Any chance of fixing this? Thanks |
In theory, extensions are supposed to work with the Thanks for your understanding! |
About the maintenance of DT and the xkcd cartoon : 75% of my big R Shiny project is made on DT. All of the datas, except graphs, are displayed by DT in this project to display and research datas computed the last night or interactively in R. I knew that you, @shrektan and @stla are the maintainers. But I didn't know that you, Yihui, are "similar to the supporting pole in the cartoon" nor "[DT] will enter the maintenance-only mode, meaning that I will not add substantial new features to it anymore. " oO. But I understand the difficulties. Since my beginning in R ecosystem in 2018 I've made lot of tweaks (js, R, Shiny, DT) on my R project, but to be a maintener in a public package is a harder work especially if it is based on an external JS library (DataTables) : to change something will be more and more like play to Mikado Game, because it's becamed a big project and you cannot risk to break existing DT projects, without enough maintainers and time. The more powerful ability of DT is to automatically paginate and research lot of datas, in the server side, without the R users explicitly write pagination :) Thanks for you work :) |
Thanks @yihui and congratulations on the brilliant work. It has made a huge impact to our work. Completely understand the restrictions. I'm wondering whether Posit might be interested in monetizing it (and therefore putting more resources into it) since it's really one of a kind and unparalleled in functionality. We would definitely be interested in a commercial license if that were the case. |
I spent some time today on investigating this issue. Unfortunately, I find this impossible to fix on my side at the moment. The reason is that the DataTables library doesn't give me any information about the reordered columns, so on the server (R) side, I have no idea which column I should use to sort the data. This problem has to be fixed on the DataTables side. The ColReorder extension has to send the correct column number to the server when columns are reordered. For example, if the first column is moved to the second, and the user sorts the second column, the server should know that the user is actually sorting the first column in the original data instead of the second column. You will have to contact the DataTables support to fix this issue: https://datatables.net/support/index
@isthisthat Thanks for the suggestion! That's definitely a possibility. Money is less of a problem to us. The hard problem is to find a person who can and wants to make this commitment.
@philibe Exactly. DataTables is complicated :) |
Thanks @yihui really appreciate the gesture. We'll look into DataTables support |
@isthisthat Good news: I just learned a way to fix this issue and should get it done today. I'll report back later. |
@yihui that is literally a Christmas miracle ❤️ Thank you 🙇 |
It took me a whole day to fix this issue, and I'm so glad that it's done now. You can test the development version via remotes::install_github('rstudio/DT') Regarding the |
Co-authored-by: Yihui Xie <[email protected]>
I can confirm that reordering now works with |
You are welcome! The |
I have spent some time on investigating the |
Thanks @yihui will do! Hope you have a relaxing break!! |
…ctions this is to fix the formatStyle() problem at #1069 (comment)
Not sure whether this is a regression since I can see it working fine on the demo page.
Here's an example where I've swapped the position of two columns and ordered by one (gc_rank), which results in the table being ordered by the other (c_rank), which is the original position of the "gc_rank" column. Having the same issue even when I keep all other settings as default and not loading any other extensions. I'm using DT v0.28 in shiny v1.7.4.
By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: