Wijmo UI for the Web
pageIndexChanged Event
The jQuery.Event object.
The data with this event.
The pageIndexChanged event handler is a function that is called after the page index is changed, such as when you use the numeric buttons to swtich between pages or assign a new value to the pageIndex option.
Syntax
Javascript (Usage) 
$(function () {
    // Set pageIndexChanged event handler function
    $(".selector").wijgrid({
        pageIndexChanged : function (e, args) {
     
        }
    });
});
Javascript (Specification) 
pageIndexChanged = function ( 
   e : Object,
   args : IPageIndexChangedEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Supply a callback function to handle the pageIndexChanged event:
$("#element").wijgrid({
    pageIndexChanged: function (e, args) {
        alert("The new pageIndex is: " + args.newPageIndex);
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ pageIndexChanged: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridpageindexchanged", function (e, args) { // some code here });

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.