help me error with rowspan in tbody
help me error with rowspan in tbody
I have table with content below, you can copy to file html, then view,
i set with :
$(document).ready(function(){
$(#myTable1").dataTable();
});
but have some error :
DataTables warning (table id = 'myTable1'): Requested unknown parameter '3' from the data source for row 0
help me fix this bug,thanks so much
------------
Stock Symbol
Stock Name
Industry
Currency
Buy Date
Buy Quantity
Buy Price
Buy Value
Sell Date
Sell Quantity
Sell Price
Sell Value
Balance Quantity
Current Price
Current Value
Current Value (Home)
Profit or Loss
Profit or Loss (Home)
Profit or Loss %
Unrealized Profit or Loss
Unrealized Profit or Loss (Home)
Unrealized Profit or Loss %
Current Value %
VINAMILK
VINAMILK
Oil and Gas
AUD
2011-11-30
340
124.00
42,160.00
2011-11-30
150
230.00
34,500.00
156
0.00
0.00
0.00
240.91
24.09
85.48
-293.09
-29.31
-100.00
0.00
2011-11-09
34
34.00
1,156.00
156
0.00
0.00
0.00
-46.36
-4.64
-72.58
-293.09
-29.31
-100.00
0.00
Total:
340
42,160.00
184
35,656.00
156
0.00
0.00
194.55
19.45
56.28
-293.09
-29.31
-100.00
0
i set with :
$(document).ready(function(){
$(#myTable1").dataTable();
});
but have some error :
DataTables warning (table id = 'myTable1'): Requested unknown parameter '3' from the data source for row 0
help me fix this bug,thanks so much
------------
Stock Symbol
Stock Name
Industry
Currency
Buy Date
Buy Quantity
Buy Price
Buy Value
Sell Date
Sell Quantity
Sell Price
Sell Value
Balance Quantity
Current Price
Current Value
Current Value (Home)
Profit or Loss
Profit or Loss (Home)
Profit or Loss %
Unrealized Profit or Loss
Unrealized Profit or Loss (Home)
Unrealized Profit or Loss %
Current Value %
VINAMILK
VINAMILK
Oil and Gas
AUD
2011-11-30
340
124.00
42,160.00
2011-11-30
150
230.00
34,500.00
156
0.00
0.00
0.00
240.91
24.09
85.48
-293.09
-29.31
-100.00
0.00
2011-11-09
34
34.00
1,156.00
156
0.00
0.00
0.00
-46.36
-4.64
-72.58
-293.09
-29.31
-100.00
0.00
Total:
340
42,160.00
184
35,656.00
156
0.00
0.00
194.55
19.45
56.28
-293.09
-29.31
-100.00
0
This discussion has been closed.
Replies
The reason for this is that each row and column (i.e. the cell that they address) is treated individually. Doing it other way is of course possible, but adds a lot of complexity to the script - for example if you filter out one row from the colspan, would it take the other row as well, or should it be reduced to just one row, altering the rowspan as it goes...?
Allan