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

Multiples tables, same page, different settings #12

Open
petermlm opened this issue Jun 9, 2017 · 3 comments
Open

Multiples tables, same page, different settings #12

petermlm opened this issue Jun 9, 2017 · 3 comments

Comments

@petermlm
Copy link

petermlm commented Jun 9, 2017

Hello.

If I have the following code:

    var sset = {
        paging: false,
        searching: false,
        rowsGroup: ['some1:name'],
        columns: [{
            name: 'some1',
            title: 't1',
        }, {
            name: 'some2',
            title: 't2',
        }]
    };

    var uset = {
        paging: false,
        searching: false,
        ordering: false,
        rowsGroup: ['some3:name'],
        columns: [{
            name: 'some3',
            title: 't3',
        }, {
            name: 'some4',
            title: 't4',
        }]
    };

    var table_sorted = $('#table_sorted').DataTable(sset);
    var table_unsorted = $('#table_unsorted').DataTable(uset);

    $("#add_stuff").click(function() {
        for(var i=0; i<4; i++) {
            table_sorted.row.add(['value' + count, i]);
            table_unsorted.row.add(['value' + count, i]);
        }
        table_sorted.draw();
        table_unsorted.draw();
        count++;
    });

Only on of the tables will correctly group rows. The other will not.

In different experiments, the first table is the one which gets rows to group, while in other experiments, it is the second.

Is this a bug in the plug-in, some limitation of it, or am I missing something?

Thank you.

@ashl1
Copy link
Owner

ashl1 commented Aug 26, 2017

Yes. This is known defect in plugin. I discovered it before the first release but used the plugin only for one table without any modifications. This should be fixed soon (I expect so)

@meno14
Copy link

meno14 commented Nov 27, 2019

any update? @ashl1

@Neryes1
Copy link

Neryes1 commented Oct 27, 2020

I have the same problem, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants