jQWidgets Forums

jQuery UI Widgets Forums Grid Pagermode : simple add pagesizeoptions

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Pagermode : simple add pagesizeoptions #48361

    migue7
    Participant

    Hi

    I have a GRID with pagermode:”simple” and is great but I want add pagesizeoptions property to select number of rows that want to display

    how can I do this?

    Thanks

    $(“#jqxgrid”).jqxGrid({
    width: 500,
    autoheight: true,
    theme: ‘energyblue’,
    pagerbuttonscount: 5,
    pageable: true,
    pagermode:”simple”,
    source: adapter,
    pagesizeoptions: [’10’, ’20’, ’30’],
    sortable: true,
    columns: [{
    text: ‘First Name’,
    datafield: ‘firstname’,
    width: 90
    }, {
    text: ‘Last Name’,
    datafield: ‘lastname’,
    width: 90
    }, {
    text: ‘Product’,
    datafield: ‘productname’,
    width: 170
    }, {
    text: ‘Order Date’,
    datafield: ‘date’,
    width: 160,
    cellsformat: ‘dd-MMMM-yyyy’
    }, {
    text: ‘Quantity’,
    datafield: ‘quantity’,
    width: 80,
    cellsalign: ‘right’
    }, {
    text: ‘Unit Price’,
    datafield: ‘price’,
    cellsalign: ‘right’,
    cellsformat: ‘c2’
    }]

    Pagermode : simple add pagesizeoptions #48365

    Peter Stoev
    Keymaster

    Hi migue7,

    That’s the reason we have both selection modes – “advanced” and “simple”. The “advanced” mode has page size options, the “simple” mode does not. If you would like, you can also create a custom Pager as shown here: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/custompager.htm?arctic.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.