JavaScript
var data = [{
"rateCardId": 47,
"rateCard": 10.0,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:32:997",
"year": 2015,
"hubId": 186,
"hubName": "Asia"
}, {
"rateCardId": 44,
"rateCard": 5444444664,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:32:997",
"year": 2015,
"hubId": 182,
"hubName": "Bermuda"
}, {
"rateCardId": 43,
"rateCard": 455.0,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:33:000",
"year": 2015,
"hubId": 183,
"hubName": "Canada"
}, {
"rateCardId": 46,
"rateCard": 4.0,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:33:000",
"year": 2015,
"hubId": 185,
"hubName": "Europe Re"
}, {
"rateCardId": 42,
"rateCard": 12234444,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:33:003",
"year": 2015,
"hubId": 184,
"hubName": "Group"
}, {
"rateCardId": 45,
"rateCard": 44.0,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:32:997",
"year": 2015,
"hubId": 180,
"hubName": "UK"
}, {
"rateCardId": 48,
"rateCard": 0.0,
"createdBy": "lputhran",
"createdDate": "15/01/2015 19:17:33:330",
"year": 2015,
"hubId": 181,
"hubName": "US"
}];
var source = {
localdata: data,
datafields: [
{
name: 'rateCardId',
type: 'number'
}, {
name: 'hubId',
map: 'hubId'
}, {
name: 'hubName',
map: 'hubName'
}, {
name: 'rateCard',
type: 'double'
}, {
name: 'year',
type: 'number'
},
{
name: 'createdBy',
type: 'string'
}, {
name: 'createdDate',
...