aLengthMenu doesn't work
aLengthMenu doesn't work
luizpericolo
Posts: 3Questions: 0Answers: 0
Good morning, guys.
I'm working with dataTables for the second time, but I can't seem to get aLengthMenu to work.
In the system I develop dataTables catches the data via an html table. Here's an example, not the actual system:
http://dcc.ufrj.br/~pericolo/tests/testDataTables/test.html
and here's a link to the code:
http://pastebin.com/EfNmjsUn
As you can see, I set aLengthMenu with [10,15,20], but it seems to ignore it. The dataTable displays the default values, I guess: 10,25,50,100.
I also have a trouble with dynamically resizing the main div, not in the example though, when I change the number of elements I want to display. According to the option, the main div overflows to the footer div, and half the table "inherits" the bgcolor of the footer. Any tips?
Thank you very much in advance!
I'm working with dataTables for the second time, but I can't seem to get aLengthMenu to work.
In the system I develop dataTables catches the data via an html table. Here's an example, not the actual system:
http://dcc.ufrj.br/~pericolo/tests/testDataTables/test.html
and here's a link to the code:
http://pastebin.com/EfNmjsUn
As you can see, I set aLengthMenu with [10,15,20], but it seems to ignore it. The dataTable displays the default values, I guess: 10,25,50,100.
I also have a trouble with dynamically resizing the main div, not in the example though, when I change the number of elements I want to display. According to the option, the main div overflows to the footer div, and half the table "inherits" the bgcolor of the footer. Any tips?
Thank you very much in advance!
This discussion has been closed.
Replies
On a side off-topic note: If anyone using Selenium + dataTables is having trouble writing tests for data filtering, I suggest you upgrade your selenium driver version. Looks like in 2.0 the typeKeys issue is pretty much solved.
Allan