jQuery UI Widgets Forums Grid jqxgrid pager buttons

This topic contains 5 replies, has 3 voices, and was last updated by  Dimitar 10 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • jqxgrid pager buttons #31112

    kuberasamrat
    Participant

    Jqwidgets 3.0.3

    I have seen first button and last button in jqxpager.js. But I am not able to access those buttons in the UI. Is there a way/API to access those buttons.

    jqxgrid pager buttons #31157

    Dimitar
    Participant

    Hello kuberasamrat,

    You can invoke the method gotopage with parameters 1 (first page) and last page. You can get the number of pages with the getpaginginformation method:

    var paginginformation = $('#jqxGrid').jqxGrid('getpaginginformation');
    var pagescount = paginginformation.pagescount;

    and then call:

    $('#jqxGrid').jqxGrid('gotopage', pagescount);

    Best Regards,
    Dimitar

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

    jqxgrid pager buttons #31163

    kuberasamrat
    Participant

    Hi Dimitar,

    I have done the same earlier(2.8 version) manually because in jqxpager.js there is no support for first and last buttons. Now in 3.03 version there is support for first and last buttons and also they have css defined( icon-first.png and icon-last.png were added). Do we need to add code in pagerrenderer function for this version also?

    jqxgrid pager buttons #31176

    Dimitar
    Participant

    Hi kuberasamrat,

    Yes, you need to implement the same code to achieve this functionality in version 3.0.3.

    Best Regards,
    Dimitar

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

    jqxgrid pager buttons #32946

    fstrizzi
    Participant

    Hi kuberasamrat,

    Any chances you can share the code for v3.0.3?

    I’m having the same problem and I need to implement last and first button on “default” pagermode.

    Thanks

    jqxgrid pager buttons #33171

    Dimitar
    Participant

    Hi fstrizzi,

    The “default” pagermode does not support first and last buttons. You would have to either set it to “simple” or use Custom Pager to add the buttons and call the methods I mentioned in my previous post to achieve the first/last button functionality.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.