array source + infinite y scroll

array source + infinite y scroll

Brent_WientjesBrent_Wientjes Posts: 2Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
I am just starting to learn dataTables. I wish to use the plugin with an array source and utilize the "infinite" scroll ability. I wish to have the height of the table something more than all of the examples of 200px/10 rows of data. When I change the example code to 300 or 400px, then the vert scroll bar does not appear and thus can not scroll the data set. Only the initial 10 rows in the data array are displayed. I have been looking at the documentation but have yet to discover a setting for how many rows of data are set (it appears to be 10 as default). My question is:

How to change the default row count for the displayable viewport?

The dataTable plugin looks wonderful. Very similar to Flex DataGrid which I greatly like.

Replies

  • Brent_WientjesBrent_Wientjes Posts: 2Questions: 0Answers: 0
    Mystery solved. I just had to read the third enty in the forum dt 1.9 category and review the default definition documentation. The answer is:

    'iDisplayLength': 20 (or some number bigger than display row area)

    in the option list of setting up a datatable.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Yup - it is a little bit annoying that issue - sorry about that. I will be looking to address that in a future version of DataTables :-).

    Allan
This discussion has been closed.