// the page first renders
displayGroup().setNumberOfObjectsPerBatch(Integer.parseInt((String) configData().valueForKey("batchSize")));
}
private NSMutableArray sampleData() {
NSData data = new NSData(application().resourceManager().bytesForResourceNamed("AjaxGridExampleTestData.plist", null, NSArray.EmptyArray));
NSMutableArray sampleData = new NSMutableArray((NSArray) NSPropertyListSerialization.propertyListFromData(data, CharEncoding.UTF_8));
Random random = new Random(new NSTimestamp().getNanos());
for (int i = 0; i < sampleData.count(); i++) {
NSMutableDictionary<String,Object> row = (NSMutableDictionary<String,Object>) sampleData.objectAtIndex(i);
row.setObjectForKey(Integer.valueOf(random.nextInt()), "number");