Hi,
Is there any sample in the dojo 1.1 download source for me to interact with a server component
with a dojo Grid,
My primary objective is How to invoke a server side component (servlet or struts Action class) and get the data and populate the grid, there after to do the crud operations via the grid

Please refer to an earlier topic:
There you find my approach to sending grid modifications to the server:
http://dojotoolkit.org/forum/dojox-dojox/dojox-grid-support/how-submit-g...
Probably not the best approach but it does the trick for the moment. The major problem with this is to make sure that the server side database (in my case a few XML-files, accessed via servlets) is always synchronous with the JSON store feeding the grid.
The following scenario messes data up:
Step 1) modifications sent to server
Step 2) timeout on client side occurs
Step 3) late server response due to heavy load or network problems
In this case the server response will be ignored by the client hence the modification will be performed on the serverside and rolled back on the client side.
I'm curious to see if anybody has an idea how to perform safe transactions asynchronously between the JSON store and the backend database / servlet without reloading the entire grid content.
One solution might be to always reload data from the server in case of timeout but that would stress the server even more.
dojo grid server side
I cant understand how above three options messes up data, isnt this the similar way shown in the following video demo.
The video demo http://dojocampus.org/content/2008/02/17/dojox-grid/
What is the reason for heavy use of dojo.connect,
Similar to the previous versions of dojo can't we use the dojo.io.bind(.... ) to get the same effect.
Thanks
The problem is not the
The problem is not the dojo.connect. It's the communication between browser / client and servlet.
That may lead to inconsistent data so you are obliged to reload the store from the server in order to display up to date data
Grid vs Server Side components
Isn't this a common issue for any widget which displays server dide data,
If there is a button to refresh data from server, that would do isn't it?
Actually what I am trying here is, tyring to get Grid working with a Struts2 Action classes.
Are you in a position to tell me apart from the inline editing why not filtering table instead of Grid,
Has filtering table been discontinued in dojo 1.1,
What are the big advantages using a Grid over a filtering table.
Thanks
Yes, as far as I know
Yes, as far as I know FilteringTable is obsolote from dojo 1.0 onwards.
You are right, the refresh button would do but it is inconvenient.
I'm using a kind of autorefresh but I want to minimise data transfer between browser and server.