Based on the code in page
http://pabloaravena.info/mytablegrid/samples/tablegrid/sample_cars1.php
First you need a JavaScript console, provided by default in Chrome or
use FireBug plugin in FF
If you modified a row in the grid then you can type the following the
javascript console
tableGrid1.getModifiedRows()
Basically you can use that instruction for building an Ajax HTTP request in the
onSave handler. The way you implements this request depends on what
you have in the server side. For example:
onSave : function () {
var modifiedRows = tableGrid1.getModifiedRows();
var request = {};
modifiedRows.each(function(item){
var id = item.id;
request['carId'] = id;
request['manufacturer;'+id] = item.manufacturer;
request['model;'+id] = item.model;
// etc ...
});
new Ajax.Request({'your URL', parameters : request, onSuccess :
<your callback>})
}
When building that request object, notices that for each request
parameter I added the id suffix, that will help you when reading the
request values in the server side.
Hope it helps you
Have an excellent day
Pablo
> --
> You received this message because you are subscribed to the Google Groups "MyTableGrid" group.
> To post to this group, send email to mytab...@googlegroups.com.
> To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mytablegrid?hl=en.
>