var d = this.data[0], i = 0, field; for(var f in d){ field = this.fields.get(i++); if (!dojo.isString(field.key)){ field.key = f; } }