-
-
Notifications
You must be signed in to change notification settings - Fork 41
Handle row selection when serverSide is on #48
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
base: master
Are you sure you want to change the base?
Handle row selection when serverSide is on #48
Conversation
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. |
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. |
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? |
It does not seem that I can access the repo :(. |
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. |
Hi! |
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. |
Hi. Three months have past. Any chance of making progress soon? |
I hope so yes. I'm hoping to start looking at this feature soon. |
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 |
Thanks. :) |
Any chance for resolve the merge conflicts and merge this nice feature? |
@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. |
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. |
@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