Editable Datagrid

2101
4
02-16-2012 09:51 PM
HaniuHokkaido
New Contributor III
Hi all,

I found an app here : http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_map_datagrid.html
How do you make the datagrid on this app editable ? Any sample on editing datagrid ?

I need guidance

Thanks
0 Kudos
4 Replies
HemingZhu
Occasional Contributor III
Hi all,

I found an app here : http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_map_datagrid.html
How do you make the datagrid on this app editable ? Any sample on editing datagrid ?

I need guidance

Thanks


First of all, change the data store from ItemFileReadStore to ItemFileWriteStore. Also make the field (or cell) editable - editable ="true". If you want the data changed in Database, you also need to make the layer as a featurelayer to allow data editing such that you could use applyEdits...
0 Kudos
HaniuHokkaido
New Contributor III
Where do you set the "editable="true"" ?

Is it like this : <th field="field1" editable="true">FIELD1</th>

I fot the information from http://dojotoolkit.org/reference-guide/1.7/dojox/grid/DataGrid.html but has no idea on how to implement it

Thanks
0 Kudos
HaniuHokkaido
New Contributor III
the grid is editable now, but how do you save the edit ? I already have a feature server, but after I edit the grid the changes is not recorded.

Thanks again
0 Kudos
JulieK
by
Occasional Contributor

could you find a solution to this?

0 Kudos