Datatable select info

Datatable select info

pushpambpushpamb 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

  • kthorngrenkthorngren Posts: 21,344Questions: 26Answers: 4,954

    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

  • pushpambpushpamb Posts: 3Questions: 0Answers: 0

    yes i am using serverside processing

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin

    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

  • pushpambpushpamb Posts: 3Questions: 0Answers: 0

    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

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin

    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

Sign In or Register to comment.