Uh oh!
There was an error while loading. Please reload this page.
Handle row selection when serverSide is on - #48
Conversation
AllanJard
commented
Dec 22, 2021
I think that is looking good so far for a client-side solution - awesome! Thanks for the PR. Regarding shift click across pages when thinking about this kind of thing before, I'd imagined sending an Ajax or socket call to the server to stay that row selection has happened and then the server can keep track of what rows are selected. It will mean a lot more Ajax calls (so socket probably best, since we'd need to query what is selected on DataTables page load as well). That is my current plan for CloudTables with server-side processing at least. |
demetris-manikas
commented
Dec 23, 2021
Well... having the server keeping track of the selections will not always be a viable solution. I was wondering if there exist any publicly available tests that I could use. |
AllanJard
commented
Dec 23, 2021
The unit tests are in this repo. We have a VM image that can get things up and running quickly: https://bitbucket.org/sprymedia/dev/src/master/unit_tests/vagrant.fedora.27/ . I had thought we had documentation on the image, but I can't actually see it - will ask my colleague Colin about docs for it - although that will be new year now as he is on annual leave. Regarding the server not being available - does that not mean that server-side processing is therefore impossible? |
demetris-manikas
commented
Dec 27, 2021
It does not seem that I can access the repo :(. |
AllanJard
commented
Dec 29, 2021
Bother - sorry. I thought we'd opened up access to that repo, but apparently not. For the moment I think I'll need to run the unit tests on a locally merged copy. Sorry! We need to make that easier in future. |
demetris-manikas
commented
Feb 17, 2022
Hi! |
AllanJard
commented
Feb 17, 2022
This is brilliant - thank you. I was actually going to doing this implementation soon myself. I'll go through this in detail when I get to that point (shouldn't be too far away) and get back to you then. |
demetris-manikas
commented
May 16, 2022
Hi. Three months have past. Any chance of making progress soon? |
AllanJard
commented
May 17, 2022
I hope so yes. I'm hoping to start looking at this feature soon. |
AllanJard
commented
Jun 23, 2022
I really like how you've implemented this - nice one! Are you happy with it being merged and released under the MIT license? I'll change the use of |
demetris-manikas
commented
Jun 26, 2022
Thanks. :) |
xJuvi
commented
Jun 2, 2024
Any chance for resolve the merge conflicts and merge this nice feature? |
demetris-manikas
commented
Jun 3, 2024
@xJuvi I don't think it has anything to do with the conflicts. This has been been forgotten here for ages. I kept on using my fork up until I stopped using datatables due to changing job. |
AllanJard
commented
Jun 3, 2024
No indeed - it is me having not prioritised it over other work yet. I've got a todo list a mile long (as I'm sure we all have) and I've just not been able to focus on this one. Sorry. |
demetris-manikas
commented
Jun 3, 2024
@AllanJard np :) |
Hi!
This is my go at the problem described in issue #46.
The code is not complete yet but it works for row selection.
I will go ahead to implement the cell and column selection as soon as you give me a green light about this PR.
I used Set and Arrays which I am not sure that are acceptable to use.
I can switch Set for an Array but the performance for big data sets will be very poor.
The difficult part is to handle the selection extention with shift-click when skipping pages.
I see some ways of handling it
Thanks in advance for your time