[Dojo-interest] DataGrid is “DataStoreAware”

Rami Alkhalyleh rkhalyleh at gmail.com
Thu Jun 17 06:54:43 EDT 2010


Compressed the attached files.

On Thu, Jun 17, 2010 at 12:00 PM, Rami Alkhalyleh <rkhalyleh at gmail.com>wrote:

> Hi,
>
>  I'm using XmlStore as a data store for the datagrid, the XmlStore talks
> with the server through HttpServlet, and I'm running some operations in the
> datagrid, like, adding new row, inline update, remove, revert, and save.
>
>    I need the update, insert new records, remove records, to be *on client
> side*, then save the xmlStore to send the changes to the server.
>
>    The point is:
>      According to DOJO documentation, datagrid is “DataStoreAware”, changes
> made to the store will be reflected automatically in the datagrid, but this
> is not working for me?
>
>      For new operation: I called var xmlItem = xmlStore.newItem(Item); but
> this not reflected to the datagrid until I called grid._onNew(xmlItem);? the
> _onNew logically is a private method and might change in future releases of
> DOJO. and I don't want to call xmlStore.save() to apply the changes
> directly.
>      I tried to use grid.addRow(), but it's not working.
>
>      For Remove operation, xmlStore.deleteItem(item) also not reflected to
> the datagrid directly UNTIL I called grid._onDelete(item) method.
>      I tried to use grid.removeSelectedRows(), but it's not working, it's
> just remove the selection.
>
>      So, my point is, Why xmlStore.newItem and xmlStore.deleteItem are not
> reflecting on the datagrid?
>
>      The attached files contains the code for the grid operations and the
> server side as a dummy methods, to use it, Please change the dojo paths in
> the html file.
>
> thanks in advance
>
>



-- 
Best Regards
   Rami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100617/73a89e1e/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datagrid.rar
Type: application/octet-stream
Size: 2357 bytes
Desc: not available
Url : http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100617/73a89e1e/attachment.dll 


More information about the Dojo-interest mailing list