Wijmo UI for the Web
IAjaxDataViewOptions Method
wijmo.data Namespace : IAjaxDataViewOptions Method
Creates an object specifying the options to use with an AjaxDataView object.
Syntax
var value; // Type: any
value = wijmo.data.IAjaxDataViewOptions();
function IAjaxDataViewOptions() : 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 
        }; 
    }
})