ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / totalRows Option
In This Topic
    totalRows Option
    In This Topic
    Gets or sets the virtual number of items in the wijgrid and enables custom paging. Setting option to a positive value activates custom paging, the number of displayed rows and the total number of pages will be determined by the totalRows and pageSize values.
    Syntax
    // Get value
    var value; // Type:  number
    value = $(".selector").c1gridview("option", "totalRows");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").c1gridview("option", "totalRows", newValue);
    var totalRows : number;
    Example
    $("#element").wijgrid({ totalRows: -1 });
    Remarks
    In custom paging mode sorting, paging and filtering are not performed automatically. This must be handled manually using the sorted, pageIndexChanged, and filtered events. Load the new portion of data there followed by the ensureControl(true) method call.
    Browser Compatibility
    8
    5
    5
    See Also