With sAjaxSource, how to build ?
With sAjaxSource, how to build ?
lib
Posts: 9Questions: 1Answers: 0
I've built the table as:
[code]
id
periodo
Row 1 Data 1
Row 1 Data 2
[/code]
Get the results from the database and they are displayed in the table. This is working, for example, for 23 results.
But, in http://www.datatables.net/usage/ you show that should be built like:
[code]
Row 1 Data 1
Row 1 Data 2
etc
Row 2 Data 1
Row 2 Data 2
etc
[/code]
Two rows... What does this mean exactly? What I'm doing is wrong? Do I have to code 100 ... rows? 100 = maximum number of rows available to be shown?
I'm also considering using one of the plugins, the Scroller. So, what exactly should I write inside the ?
[code]
id
periodo
Row 1 Data 1
Row 1 Data 2
[/code]
Get the results from the database and they are displayed in the table. This is working, for example, for 23 results.
But, in http://www.datatables.net/usage/ you show that should be built like:
[code]
Row 1 Data 1
Row 1 Data 2
etc
Row 2 Data 1
Row 2 Data 2
etc
[/code]
Two rows... What does this mean exactly? What I'm doing is wrong? Do I have to code 100 ... rows? 100 = maximum number of rows available to be shown?
I'm also considering using one of the plugins, the Scroller. So, what exactly should I write inside the ?
This discussion has been closed.
Replies
The new manual for DataTables 1.10 might help: http://next.datatables.net/manual/data#Data-sources
Allan