Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 29, 2008 11:51
open dhtmlx forum
update

***** NOTE: Your grid is being used in a .Net 2.0 environment ******
We have a situation where if I make changes to multiple rows in your grid then the changes to the DB need to happen as "ONE" transaction. I have your grid posting data back to another *.cs file which handles my DB actions which means I will have trasctions enabled on that *.cs fille. As your grid post data back I will be saving all data to a DataTable that will be saved into a session variable so once the last record from your grid is posted to my *.cs file then I will need to begin a transaction to the DB.
I need to know if your grid gives any indication as to whether it is posting the last row that was updated so that I can begin my transaction to the DB or is there is a better way by to perform this transactions?. Can you please answer ASAP. Thanks.
Answer posted by Support on Jan 30, 2008 07:32
>>I need to know if your grid gives any indication as to whether it is posting the last row that was updated so that I can begin my transaction to the DB or is there is a better way by to perform this transactions?.

There is no info about last row in request send to the server and this can't be achieved without code modification.
But you can enable save-all-at-once behavior.

    dataproc.setTransactionMode("POST",true);

all updated data will be send as part of one request, and will await that response will contains <action> tags for all rows included in operation.