Update operation

Dear sir,



I am using the update operation through the grid part.



I have ‘Update button’ under the Grid. It means after changing the row , i am trying to click the update button under the grid .



All the rows are updation while cliking the update button. But i need update suceesful message or unsuccessful message.



my code



mygrid = new dhtmlXGridObject(‘gridbox’);

    mygrid.setImagePath("…/js/imgs/");    

    mygrid.setSkin(“modern”);

    //mygrid.enableAutoHeigth(true);

    mygrid.setHeader(“SR.No,PR.No,BAANORDER NO,Po No,Order Date,Item Name,Project Name,Quantity Order,Price”);

    mygrid.setInitWidths(“80,80,100,120,140,168,100,100,110”);

    mygrid.setColumnIds(“SRo,PR,BAANOrder,Po,Order,Item,Project,Quantity,Price”)

    mygrid.setColTypes(“ro,ro,ro,ro,ro,ro,ro,ro,ed”);

    mygrid.setColSorting(“int,int,int,int,date,str,str,int,int”);

    //mygrid.enableRowsHover(true,‘grid_hover’);

    mygrid.init();

    mygrid.enableResizing(“na”);

    mygrid.enableAutoHeigth(true);

    mygrid.enablePaging(true,13,20,“pagingArea”,true,“infoArea”);

    mygrid.setPagingSkin(“bricks”);

    mygrid.enableMultiline(true);    

    mygrid.parse(’<?xml version="1.0" encoding="UTF-8"?><%=tableData%>’);

    myDataProcessor = new dataProcessor(“updateCost.jsp”);

    //myDataProcessor.enableDebug(true);

    myDataProcessor.enableDataNames(true);

    myDataProcessor.setVerificator(1);

    myDataProcessor.setUpdateMode(“off”);//available values: cell (default), row, off

    myDataProcessor.defineAction(“error”,myErrorHandler);

    myDataProcessor.setTransactionMode(“POST”,true);

    myDataProcessor.init(mygrid);



So please give me the answer.

But i need update suceesful message or unsuccessful message.
If you what message after rows was updated on the server side you can use “onAfterUpdate” event. This event occurs for each action tag in xml response
dp.attachEvent(“onAfterUpdate”,function(sid,action,tid,xml_node){
//any custom code
return true;
})
Event handler has parameters:
sid - existing id of item;
action - action type;
tid - new id of item;
xml node object from server side response, related to current record.