Datatable select info
Datatable select info
pushpamb
Posts: 3Questions: 0Answers: 0
Page 1, I select 2 rows and the select.info() correctly shows "2 rows selected".
Go to page 2, the select.info disappears and if you select a row it says "1 row selected"****
Replies
Are you using server side processing? I don't think the select extension keeps track of the selected rows on other pages with server side processing. The Gyrocode checkbox plugin does seem to keep track of the selected rows with server side processing. See this example
Kevin
yes i am using serverside processing
There is a pull request that adds support for server-side processing. I haven't been able to focus on merging that in yet (hopefully it isn't too far away!!!) but if you try it out, let me know how you get on.
Allan
using serverside processing i want to display row count on footer using select info and when page index is changed row count should not clear
Does the code from the merge request not do that? I thought it would.
One thing you need to be aware of when working with selected rows and server-side processing is that the rows on hidden pages do not exist on the client-side any more. So you can't manipulate them on the client-side - e.g. you can't use
row().data()
etc.How are you planning to use the selected rows?
Allan