josh

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: Sorting with Paging #90068
    josh
    Participant

    Perfect.

    in reply to: Sorting with Paging #90014
    josh
    Participant

    I suppose that I could keep track of the page number by creating a variable for currentPage and then doing something like:

    onPaging: function() { currentPage = $('#list').getGridParam('page'); },

    onSortCol: function() { jQuery('#list').setGridParam({page:currentPage});

    But is there a cleaner way??

    in reply to: Sorting with Paging #90013
    josh
    Participant

    Right… I had tried that.

    in reply to: Sorting with Paging #90007
    josh
    Participant

    OK – I can set the page within onSortCol and the list jumps to that page after sorting:

    onSortCol: function(index,iCol,sort){jQuery(“#list”).setGridParam({page:3});

    However, I obviously don't want to hard-code the page number… and instead it should be set depending on what page I'm on when I click the column to sort by.

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!