title: Mark records as new in a ListGrid in SmartGWT
body: <p>In SmartGWT, using a ListGrid.</p>
  
  <p>I am currently loading data from a CSV file in order to pre fill a listgrid. I would like to be able to save this data in a database later.</p>
  
  <p>Using listGrid.startEditingNew() I am able to create a record that is considered as new. But it can be very slow, even with a reasonable amount of data (50 rows).</p>
  
  <pre><code>ListGrid listGrid = new ListGrid();
  
  Record record= new Record();
  record.setAttribute("attr1", 1);
  record.setAttribute("attr2", "2");
  
  listGrid .startEditingNew(record);
  listGrid .endEditing();
  </code></pre>
  
  <hr>
  
  <p>Here I tried to use a RecordList, so I can update all the data at once. The data is shown fine and fast in the list. But it appears in black font (as if it was fetch). So the rows are not affected by listGrid.saveAllEdits(). </p>
  
  <p>I wonder if there is a way to mark each of the records from the RecordList as new rows.</p>
  
  <pre><code>ListGrid listGrid = new ListGrid();
  RecordList recList = new RecordList();
  
  Record record= new Record();
  record.setAttribute("attr1", 1);
  record.setAttribute("attr2", "2");
  
  recList.add(record);
  listGrid .setData(recList);
  </code></pre>