package com.test.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.GroupStartOpen;
import com.smartgwt.client.widgets.grid.ListGrid;

public class Main implements EntryPoint {

    public void onModuleLoad() {

	final ListGrid countryGrid = new ListGrid();
	countryGrid.setWidth100();
	countryGrid.setHeight100();
	countryGrid.setDataSource(DataSource.get("worldDS"));

	countryGrid.setAutoFetchData(true);
	countryGrid.setShowFilterEditor(true);

	countryGrid.setGroupByField("countryName");
	countryGrid.setGroupStartOpen(GroupStartOpen.ALL);
	countryGrid.setFilterOnKeypress(true);

	countryGrid.draw();

    }

}