Select in combination with SSP

Select in combination with SSP

nschochnschoch Posts: 3Questions: 0Answers: 0
edited August 2015 in Free community support

Heyho!

Working with the new extension select leads to some odd beheavior. Line 415 gets the current selected lines which is fine.
https://github.com/DataTables/Select/blob/master/js/dataTables.select.js#L415

        // On the next draw, reselect the currently selected items
        api.one( 'draw.dt.dtSelect', function () {
            api.rows( rows ).select();

In combination with server side on, something goes wrong if you do some action (search, order or anything else). With select multi all lines get selected and with single of course only the last one.

On line 7661 it just returns all current rows or am i wrong?.
https://github.com/DataTables/DataTables/blob/1.10.8/media/js/jquery.dataTables.js#L7661

        if ( _fnDataSource( settings ) == 'ssp' ) {
            // In server-side processing mode, most options are irrelevant since
            // rows not shown don't exist and the index order is the applied order
            // Removed is a special case - for consistency just return an empty
            // array
            return search === 'removed' ?
                [] :
                _range( 0, displayMaster.length );
        }

Replies

This discussion has been closed.