Warning from TreeGrid

I’ve noticed the following warning which comes out on the developers console whenever you close an open folder in a TreeGrid:
23:55:07.506:MUP2:WARN:TreeGrid:employeeTree:getCellRecord called with bad rowNum: undef

The message above comes from the parent tree example in the feature explorer but I see it in every TreeGrid I’ve tried so far. It occurs in both Firefox and Safari. Since the tree seems to work, I guess the error isn’t a big problem but it seems a bit suspicious and I spent some time trying to figure out what was wrong with my own code before I realized it happens in every TreeGrid, even the examples in the feature explorer.

We noticed this too, and it’s fixed for 7.0

This is back, it only happens when a boolean ListGridField is used, here the code:

package test.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.types.ListGridFieldType;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;

public class Application implements EntryPoint
	{
	 private final String[] countryRecords = new String[]
	        { "countryCode;countryName;capital",
	          "US;United States;Washington, DC",
	          "CH;China;Beijing",
	          "JA;Japan;Tokyo",
	          "IN;India;New Delhi",
	          "GM;Germany;Berlin",
	        };
	     
	private ListGridRecord[] createListGridRecords(String[] records)
		{
		ListGridRecord[] result = new ListGridRecord[records.length - 1];
		String[] fieldNames = records[0].split(";");
		for (int recordIndex = 1; recordIndex < records.length; ++recordIndex)
			{
			String[] fieldValues = records[recordIndex].split(";");
			result[recordIndex - 1] = new ListGridRecord();
			for (int fieldIndex = 0; fieldIndex < fieldValues.length; ++fieldIndex)
				{
				result[recordIndex - 1].setAttribute(fieldNames[fieldIndex], fieldValues[fieldIndex]);
				}
			}
		return result;
		} 
	
	public void onModuleLoad()
		{
		SC.showConsole();
		
		ListGrid myListGrid = new ListGrid();
		myListGrid.setData(createListGridRecords(countryRecords));
		myListGrid.setAutoFetchData(true);
		myListGrid.setWidth(700);
		myListGrid.setHeight(300);
		
		ListGridField countryCodeField = new ListGridField("countryCode", "Code", 220);
		
		ListGridField booleanField = new ListGridField("boo", "boo", 60);
		booleanField.setType(ListGridFieldType.BOOLEAN);
		
		myListGrid.setFields(countryCodeField, booleanField);  
		myListGrid.draw();
		}

	}

If the boolean ListGridField is removed, the warnings dissapear.

I get:

WARN:ListGrid:isc_OID_0:getCellRecord called with bad rowNum: undef

These warnings should be gone with the latest from SVN, can you confirm?

sorry for the late reply, they are gone, thanks 4 fixing this!

Bas