when I use the grid.addRow([field1,field2,field3,field4]) to add rows programatically the new row is added but displays '...' in very cell of the new row, no matter what value have I set in the array.
I've tried invoking grid.render() and grid.refresh() after grid.addRow() but always got the same result.\
Any idea ?

I will assume here that you
I will assume here that you are using dojox.grid.DataGrid
not dojox.grid.Grid or dojox.Grid
DataGrid is the new thing in 1.2
So with DataGrid
addRow function does not take any arguments. Therefore this is not a thing to use to add new Rows with Data.
DataGrid in 1.2 is 'Data-store aware' in the sense that that DataGrid Visual component reflects changes
made in the datastore, or it allows to 'Edit' values in the data store.
Therefore if you are to add a new row to the Data grid -- it means that you have to add really an new Item to the
corresponding data store
when you declared you data grid, you had to assign an ItemFileWriteStore to the
grid.store
or use grid.setStore(yourItemFileWriteStore).
If that's the case, then what you needed to do is to call
attrib2:val,
etc});
when creating a new item for the store, do not forget to set your store identifier attribute to a unique value.
I personally have an identifiery that is a 'row count' within a grid,
so that I can always do:
grid.rowCount+1 to create a unique identifier number within a grid -- but in many instances
the store identifier has to be obtained differently (especially if you let users to delete rows in the middle of the grid)
hope the above helps
how to get store identifier differently.
I am using 1.2 Grid and have requirement to delete rows from middle of the grid.
If I use grid.rowCount to add newItem, and use deleteItem to delete rows from middle, I get issue adding new Item again due to rowCount already exist.
How do I get uniq store identifier?