2013-07-29 37 views
0

當我在網格中編輯單元格時,單元格中放置了一個零(「0」),與單元格值重疊。這個零不會在網格加載時顯示,並且在更新發生時它不會保存到數據庫中。如果我離開並回來,零就消失了。它只發生在我編輯單元格的時候;如果我只在單元格中單擊並啓動內聯編輯,則不會顯示零。這發生在每個細胞,甚至日期。 我的頁面是SPA。 這是建立網格代碼:編輯網格單元格後,該值與零重疊

function fnLoadStorageVaults(storageid) { 

    var ds = new kendo.data.DataSource({ 
     transport: { 
      read: { 
       url: URL_GETVAULTS, 
       dataType: "json", 
       type: "GET", 
       data: { StorageID: storageid } 
      }, 
      update: { dataType: "json", url: URL_UPDATEVAULTS, type: "POST" }, 
      destroy: { url: URL_DELETEVAULT, type: "POST" }, 
      create: { url: URL_INSERTVAULT, type: "POST" }, 
      parameterMap: function (data, type) { 
       return kendo.stringify(data); 
      } 
     }, 
     autoSync: true, 
     schema: { 
      model: { 
       id: "StorageVaultID", 
       fields: { 
        VaultNumber: { type: "string", editable: true }, 
        Section: { type: "string", editable: true }, 
        Row: { type: "string", editable: true }, 
        DateFrom: { type: "date", editable: true }, 
        DateTo: { type: "date", editable: true }, 
        WarehouseID: { type: "number", editable: true } 
       } 
      } 
     } 
    }); 

    $("#VaultGrid").kendoGrid({ 
     dataSource: ds 
     , sortable: true 
     , editable: true 
     , navigable: true 
     , columns: [ 
      { field: "WarehouseID", title: "Warehouse", width: "60px" } 
      ,{ field: "VaultNumber", title: "Vault Nbr.", width: "60px" } 
      , { field: "Section", title: "Section" } 
      , { field: "Row", title: "Row" } 
      , { field: "DateFrom", title: "Date In" } 
      , { field: "DateTo", title: "Date Out" } 
     ] 
    }); 

} 

The Phantom Zero

+0

您正在使用哪種瀏覽器? KendoUI的哪個版本?你可以嘗試在JSFiddler或JSBin中重現它,並與我們分享鏈接? – OnaBai

回答

0

我道歉,更新不工作畢竟。零是來自服務器的響應。但仍然好奇的行爲。

相關問題