Skip to content Skip to sidebar Skip to footer

Trouble With Getting Rownum Inside The Function That Handles Onpaging Event

When I change the rowNum in paging combobox (see below) I want to find out which number was selected so I have decided to use the next approach: onPaging : function(pgButton) {

Solution 1:

You have to get the value directly from the select:

onPaging : function(pgButton) {
    if (pgButton != "records"){
        return;
    }

    var newRowNum = $(".ui-pg-selbox", this.p.pager).val();
}

Post a Comment for "Trouble With Getting Rownum Inside The Function That Handles Onpaging Event"