title: How to let a GXT grid take up all available width?
body: <p>I have a grid in GXT, something like this:</p>
  
  <pre class="lang-java prettyprint-override"><code>List&lt;ColumnConfig&gt; configs = new ArrayList&lt;ColumnConfig&gt;();
  ColumnConfig config = new ColumnConfig();
  config.setId("type");
  config.setHeader("Type");
  config.setWidth(50);
  configs.add(config);
  config = new ColumnConfig();
  config.setId("text");
  config.setHeader("Info");
  config.setWidth(75);
  configs.add(config);
  
  columnModel = new ColumnModel(configs);
  listStore = new ListStore&lt;DtoModel&gt;();
  
  grid = new Grid&lt;DtoModel&gt;(listStore, columnModel);
  grid.setAutoHeight(true);
  grid.setAutoWidth(true);
  
  VerticalPanel verticalPanel = new VerticalPanel();
  verticalPanel.setLayout(new FillLayout());
  verticalPanel.add(grid);
  </code></pre>
  
  <p>This creates the grid just fine with one exception-- the width is limited to the sum of the column widths.  When I forgo the column widths, the grid ends up having 0 width.  </p>
  
  <p>Is there a way to have this grid and its columns expand to fill the entire area available to it?</p>
  
  <p><strong>Edit:</strong> One of the difficulties is the <code>ColumnConfig.setWidth()</code> method only takes an <code>int</code> as a parameter, so I can't specify "100%" as a string or something like that.</p>