the method of getValue can get all data type values except d


thanks for you answer, but I don’t know why I can’t get the dhxCalendar type value



this is my method :



getGridData: function(){
 var allItemID = new Array(0);  
 var modiItemID = new Array(0);// copy of allitemid
 var a = 0; // modiItemID array index
 var iflag = 0; //



 var saveFlag = false;
 var blankFlag = false;
 var gridColumns = this.getColumnCount();
 var dataXML = null;



 allItemID = this.getAllItemIds().split(",");



 // rows
 for (var i = 0; i < allItemID.length; i++) {
  var modiFlag = false;
  // columns
  for(var j = 0; j < gridColumns; j++){
   if(this.cells(allItemID[i],j) != null) {
    if(this.cells(allItemID[i],j).wasChanged()){
     modiFlag = true;
    }



    var cellValue = this.cells(allItemID[i],j).getValue(); // the method of getValue can get all data type values except dhxCalendar type
    
    if (cellValue != “” && cellValue.length != 0 && cellValue != null) {
     iflag++;
    }
   }
  }



  if (iflag > 1) {
   modiItemID[a++] = allItemID[i];  
  } 
 }



 if(modiItemID.length > 0){
  dataXML = “<?xml version='1.0' encoding='UTF-8'?>”;
  for(var i = 0; i < modiItemID.length; i++){
   if(modiItemID[i].length > 0){
    dataXML += “”;
    for(var j = 0; j < gridColumns; j++){
     dataXML += “”;
     var cellValue = this.cells(modiItemID[i],j).getValue();
     if(cellValue.indexOf("<") != -1){
      dataXML += cellValue.substring(cellValue.indexOf(">")+1, cellValue.indexOf("</"));
     } else {
      dataXML += cellValue;
     }
     dataXML += “”;
    }
    dataXML += “”;
   }
  }
  dataXML += “”;
 }
 return dataXML;
}

Please try to replace your dhtmlxgrid_excell_dhxcalendar.js file with file from attachment.

thanks for you answer, but the attachment dont find dhtmlxgrid_excell_dhxcalendar.js …

Sorry for inconvenience. Right file is attached.
dhtmlxgrid_excell_dhxcalendar.rar (1.93 KB)