Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by vicgirl on Sep 25, 2009 09:04
open dhtmlx forum
Little problem with dataprocessor for cancel deleted status of row

Hello,

I'm kinda newbie using the grid, I've tried that two lines on my test page and it worked fine in client side, but when I submit the grid, the row still shows as deleted, how can I do for get it as updated instead?

Here is part of my dp and grid init:

        mygrid = dhtmlXGridFromTable("tblNotas");
        mygrid.submitOnlyChanged(false);//I need to get all values
        mygrid.attachEvent("onRowSelect",doOnRowSelected);

        dp = new dataProcessor('somePage.php');    

        function doOnRowSelected(rowID,celInd){
    
          switch(celInd){
             case 0:
               mygrid.deleteRow(rowID);//Delete row when first column is clicked        
             break;
             default://
                dp.setUpdated(rowID,false);
                mygrid.setUserData(rowID,"!nativeeditor_status","");
            
          }//end switch
        }//end function

        dp.setUpdateMode("off");
        dp.setTransactionMode("POST",true);
        dp.init(mygrid);

Thnx
Answer posted by dhxSupport on Sep 28, 2009 01:19
>>but when I submit the grid
How are you submitting grid? Do you use form integration extension? 
Please try to switch dataProcessor's debug mode. In such case you will be able to check what request send to your server side. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:debug_mode
Answer posted by vickgirl on Sep 28, 2009 09:23
Hi again,

Thanks for replying, I'll give it a try and let you guys know.