Wijmo UI for the Web
onRequest Field
wijmo.data Namespace > IAjaxDataViewOptions Interface : onRequest Field
The settings to use when initiating a request for data.
Syntax
var instance; // Type: wijmo.data.IAjaxDataViewOptions;
var value; // Type: any
value = instance.onRequest;
var onRequest : any;
Example
data: new wijmo.data.AjaxDataView("http://ws.geonames.org/searchJSON", 
{ 
    ajax: { 
        dataType: "jsonp", 
        data: { 
            username: "demo", 
            style: "SHORT"
        } 
    }, 
    pageSize: 10,
    onRequest: function (settings, shape) { 
        settings.data.startRow = shape.pageSize * shape.pageIndex; 
        settings.data.maxRows = shape.pageSize; 
    }, 
    onResponse: function (response) { 
        return { 
            totalItemCount: response.totalResultsCount, 
            results: response.geonames 
        }; 
    }
})
See Also

Reference

IAjaxDataViewOptions Interface