Skip to content
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

Bootstrap + Scroller issues #189

Closed
DunkiesTier opened this issue Jan 19, 2015 · 0 comments
Closed

Bootstrap + Scroller issues #189

DunkiesTier opened this issue Jan 19, 2015 · 0 comments
Labels

Comments

@DunkiesTier
Copy link

It appears when you are using both .withBootstrap() and .withScroller(), the scroller-type pagination does not work properly. Instead of loading the data is you scroll, the dataTable instead only shows the number of records you've selected in "Show x Entries".

html:

<div class="container">
    <div data-ng-controller="DataTableAjax as table">
        <table data-datatable="" data-dt-options="table.dtOptions" data-dt-columns="table.dtColumns" class="row-border table-striped hover"></table>
    </div>
</div>

javascript:

            var app = angular.module("test", ['datatables', 'ui.bootstrap']).controller('DataTableAjax', DataTableAjax).controller("PositionControl", PositionControl);

            function DataTableAjax(DTOptionsBuilder, DTColumnBuilder) {
                var vm = this;
                vm.dtOptions = DTOptionsBuilder
                        .fromSource('test.json')
                        .withScroller()
                        .withOption('deferRender', true)
                        .withOption('scrollY', 600)
                        .withOption('responsive', true)
                        .withBootstrap()
                        ;
                console.log(vm.dtOptions);

                vm.dtColumns = [
                    DTColumnBuilder.newColumn('id').withTitle('ID'),
                    DTColumnBuilder.newColumn('firstName').withTitle('First name'),
                    DTColumnBuilder.newColumn('lastName').withTitle('Last name')
                ];
            }
@l-lin l-lin added the bug label Jan 19, 2015
l-lin added a commit that referenced this issue Jan 23, 2015
@l-lin l-lin closed this as completed Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants