jQWidgets Forums

jQuery UI Widgets Forums Grid Grid paging help needed

This topic contains 1 reply, has 1 voice, and was last updated by  damerval 12 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid paging help needed #21277

    damerval
    Participant

    Hi,

    I am trying to use paging on a jqxGrid and not having any luck.

    When I define my grid this way the grid shows on the page:

    $(“#mygrid”).jqxGrid({
    width: 750,
    source: dataAdapter,
    sortable: true,
    autoheight: true,
    theme: ‘classic’,
    columns: [
    {text: ‘Off. #’, datafield: ‘ofndr_num’}, {text: ‘First name’, datafield: ‘first_name’, width: 150},
    {text: ‘Last name’, datafield: ‘last_name’, width: 150}, {text: ‘Crime’, datafield: ‘highest_crime’, width: 150},
    {text: ‘Action’, datafield: ‘assign_reason’, width: 150}
    ]
    });

    However when I define it this way, adding the “pageable = true” option (and making sure the jqxgrid.pager.js is referenced in my header), I just get a light grey line across the screen:

    $(“#mygrid”).jqxGrid({
    width: 750,
    source: dataAdapter,
    sortable: true,
    pageable: true,
    autoheight: true,
    theme: ‘classic’,
    columns: [
    {text: ‘Off. #’, datafield: ‘ofndr_num’}, {text: ‘First name’, datafield: ‘first_name’, width: 150},
    {text: ‘Last name’, datafield: ‘last_name’, width: 150}, {text: ‘Crime’, datafield: ‘highest_crime’, width: 150},
    {text: ‘Action’, datafield: ‘assign_reason’, width: 150}
    ]
    });

    I have followed the documentation (I think) at http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-paging.htm. I have made sure that caching was not an issue (cleared all cache prior to testing). Please let me know what I have missed.

    Thank you!

    Philippe

     

    Grid paging help needed #21299

    damerval
    Participant

    Hello again,
    Never mind – I was missing two declarations for the paging, namely jqxlistbox and jqxdropdownlist.

    Philippe

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

You must be logged in to reply to this topic.