Create two tables from same source, but different groups

Create two tables from same source, but different groups

jonmrichjonmrich Posts: 12Questions: 6Answers: 0

I have a single data source and have a table with data for all 50 states. I'd like to divide this into two groups (first 25 states, second 25 states) so I can display the data in two side by side columns each with its own table.

Is there a way to group the states into two groups, one for each table? Ideally, they'd each have their own sorting, etc, but without data from the other group being included.

Thanks,
JMR

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    Answer ✓

    I would suggest grabbing the data with your own $.ajax call (assuming you are using Ajax, then doing a simple loop to split it into two arrays, using whatever split criterion you need, and then feed those two arrays into their respective tables as the data source.

    Allan

This discussion has been closed.