use rowspan for td element causes wrong

use rowspan for td element causes wrong

loveDTloveDT Posts: 8Questions: 0Answers: 0
edited August 2011 in Bug reports
my code is here:
[code]



Product/Module
Open/Close/rt


Feb

Mar

Apr


May

Jun

Jul







ARM

Open

1

2

3

4

5


6



Close

1

2

3


4

5

6



RT

1


2

3

4

5

6





[/code]

when i run this in ff,it reminds me :
Datatable waring: Requested unknown parameter '7' from data source for row 1


i am puzzled,where is the magic number '7'? why it wrong ?

wah,papis,help me from devil
newbie using datatable

Replies

  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin
    rowspan is not supported in the TBODY in DataTables - hence the error. In 1.7- the error was quite explicit in saying that, but with the changes for 1.8 I modified the error to be a bit more technical since it can be caused by other things as well now. I'll be putting it back in in future.

    Allan
  • loveDTloveDT Posts: 8Questions: 0Answers: 0
    edited August 2011
    thank u allan,i love you

    btw: since the default entries showed by DT is 10,right?
    so,how can i change this to 25 default,or 30 default?

    mua
  • loveDTloveDT Posts: 8Questions: 0Answers: 0
    allan,
    i found this
    http://datatables.net/usage/options#iDisplayLength
    i think it is helpful

    thank you again,

    Good day.
    loveDT
  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin
    The closest it is currently possible to get to doing a rowspan in DataTables is to do something like this with FixedColumns: http://datatables.net/release-datatables/extras/FixedColumns/row_grouping_height.html . That is rowspan, but it required FixedColumns and scrolling to be enabled in the table, which might or might not be what you want. It would be possible to manipulate the table on draw callback to do something this this as well, but it might be a bit more tricky that taking what is already available in that demo.

    Allan
  • loveDTloveDT Posts: 8Questions: 0Answers: 0
    @allan
    i got it
    i will try ,thanks so much
    so impressed for your kindness,Goodday
This discussion has been closed.