Editor pagingType and pageLength options?

Editor pagingType and pageLength options?

mrsebfreymrsebfrey Posts: 6Questions: 2Answers: 0

Datatables itself offers options for pagingType and pageLength. I can't for the life of me see where to configure this for Editor. All the examples show just 10 rows in the Editor, with no way to select more rows. What am I missing? Thanks!

Answers

  • allanallan Posts: 61,451Questions: 1Answers: 10,055 Site admin

    Have a look at this FAQ:

    Q. How can I show the page length select when using Buttons?

    Allan

  • mrsebfreymrsebfrey Posts: 6Questions: 2Answers: 0

    Thanks, that does work - but is there a way to get it to default to like 100 rows when the Editor is instantiated? Datatables itself has pageLength as an initialisation option, I thought Editor is an extension of Datatables so wouldn't it have that same option?

  • allanallan Posts: 61,451Questions: 1Answers: 10,055 Site admin

    Editor is an extension of DataTables, but it doesn't override the DataTables options. You would still use the pageLength option to set the default page length, regardless of whether you also initialise Editor or not.

    Allan

This discussion has been closed.