Page Length is added twice

Page Length is added twice

ARLARL Posts: 2Questions: 1Answers: 0

When I add pageLength to topStart (or omit it) it's shown once, at the top as expected.

 layout: {
        bottomStart: 'paging',
        bottomEnd: 'info',
        bottom2Start: {
           buttons: ['csv', 'excel'],  
         },
         topStart: {
            pageLength: {
                menu: [ 12, 24, 48, 100, 'All' ]
            },
          }
 },

When I set pageLength to bottomStart or bottomEnd its added twice, once at the top and once at the bottom.

 layout: {
                        bottomStart: 'paging',
                        bottomEnd: 'info',
                        bottom2Start: {
                            buttons: ['csv', 'excel'],  
                        },
                        bottom2End: {
                            pageLength: {
                                menu: [ 12, 24, 48, 100, 'All' ]
                            },
                        }
                    },

Do I need to disable the top pageLength control somehow or is this a possible bug?

Thanks in advance

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951
    Answer ✓

    The layout docs show what to do. It shows the default layout where topStart: 'pageLength' is set. If you want to remove it from the top use topStart: null as shown in the first example.

    Kevin

  • ARLARL Posts: 2Questions: 1Answers: 0

    @kthorngren Thank you!

Sign In or Register to comment.