ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / pageIndexChanged Event
The jQuery.Event object.
The data with this event.
In This Topic
    pageIndexChanged Event
    In This Topic
    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
    var options; // Type:  jQuery.wijmo.c1gridview.options
    
          // Create a new c1gridview widget
          $(".selector").c1gridview(options);
    
          // Get a previously created c1gridview widget instance
          var widgetInstance; // Type:  jQuery.wijmo.c1gridview
          widgetInstance = $(".selector").data("wijmo-c1gridview");
    
          // Set pageIndexChanged event handler function
    widgetInstance.option("pageIndexChanged", function (e, args) { } );
    pageIndexChanged = function ( 
       e : Object,
       args : wijmo.grid.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