The pagination list length switch is not displayed

The pagination list length switch is not displayed

ostmalostmal Posts: 102Questions: 33Answers: 0

Hello.
I don't have the pagination list length switch displayed, like here:
this
So:
this
You need to specify something explicitly? But in the example above, I didn't find it!
Thank you in advance.

Answers

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    The Page Length input is controlled by lengthChange or dom. Also I believe you need to have paging enabled. By default it will show but you may have one of these option set to a non-default value which could hide it.

    Kevin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Thanks. I added:

    lengthChange: true,
    paging: true,
    iDisplayLength: 5,
    aLengthMenu: [[ 10, 20, 50, 100 ,-1],[10,20,50,100,"все"]],
    

    No change!
    You can view it here

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    You are using the dom option like this dom: 'Bfrtip',. Please see the docs for dom and this faq.

    Kevin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Thanks.
    I removed the "Bfrtip"
    Nothing has changed

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    Did you update the test case? It looks like dom: 'Bfrtip', is still there. Maybe I'm looking at the wrong script.

    Kevin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Yes, update

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    I cleared my cache and now see this:

    Looks like the length menu is there. Now put back the -dom option using with the l in the position you want the length menu. Like this dom: 'Blfrtip',.

    Kevin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Thank you very much, Kevin

This discussion has been closed.