Is there any way to have a datatable with lazy loading, paging or livescroll and multiple selection.
It seems like whenever a new page is selected or scrolled to the selection array is cleared, so is it possible to do multiple selection over more than one page ?
Thanks in advance,
Arco van der Velden
Datatable lazy loading multiple selection
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
You can do this by using checkbox selection.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Having similar issues while trying a combination of LazyDataModel + livescroll +selectionMode="multiple".
The issue I have is when I deselect the header checkbox in the datatable. load method is automatically called with pagesize value taken from rows attribute. All the previously loaded data is gone.
Selecting the header checkbox works fine, but why deselecting the checkbox is calling the load method?
Any advice in this regard is greatly appreciated.
--------------------------
PrimeFaces 5.0
Java 7
The issue I have is when I deselect the header checkbox in the datatable. load method is automatically called with pagesize value taken from rows attribute. All the previously loaded data is gone.
Selecting the header checkbox works fine, but why deselecting the checkbox is calling the load method?
Any advice in this regard is greatly appreciated.
--------------------------
PrimeFaces 5.0
Java 7
PrimeFaces 5.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0
Problem mentioned above in my comments is now fixed. See link below.
http://forum.primefaces.org/viewtopic.p ... 1&p=128801
http://forum.primefaces.org/viewtopic.p ... 1&p=128801
PrimeFaces 5.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0