Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 06, 2008 08:48
open dhtmlx forum
DataProcessor

When i do an insert i see the !nativeeditor_status = inserted, !nativeeditor_status = deleted for delete, !nativeeditor_status= for update. How can i make the !nativeeditor_status to show updated when an update has been made to a row??
Answer posted by Support on Feb 07, 2008 06:29
It may be updated in dhtmlxdataprocessor.js, but having empty value is informative enough on my opinion ( if data was not updated it would not send to server )

              this.obj.setOnEditCellHandler(function(state,id,index){
                  var cell = self.obj.cells(id,index)
                  if(state==0){

                  }else if(state==1){
                    if(cell.isCheckbox()){
                          self.obj.setUserData(id,"!nativeeditor_status","inserted");   //may be added
                          self.setUpdated(id,true)
                      }
                  }else if(state==2){
                      if(cell.wasChanged()){
                        self.obj.setUserData(id,"!nativeeditor_status","inserted");   //may be added
                        self.setUpdated(id,true)
                      }
                  }
                return true;
              })