2013-05-13 3 views
0

기본적으로 숫자로 표시된 데이터 소스의 모든 필드에는 초기 값 0으로 채워진 셀이 있습니다. 필드를 문자열로 바꾸지 않고 그리드를 만들면 셀을 비워야합니다. .검도 그리드 번호 셀 초기화

아래 행은 grid.addRow();

enter image description here

$("#SALE_01_DIV_GRID") 
       .kendoGrid(
        { 
         ... 
         dataSource : { 
          schema : { 
           data: "Data", 
           total: "Total", 
           model: { 
            fields : { 
             SEQ : { type : "string", editable : false}, 
             SAP_CD : { type : "string" }, 
             OLD_CD : { type : "string", editable : false }, 
             INV_NAME : { type : "string", editable : false }, 
             LINE_NAME : { type : "string", editable : false }, 
             COLOR : { type : "string", editable : false }, 
             DESCNT : { type : "string", editable : false }, 
             COMMISSION : { type : "string", editable : false }, 
             SAVE_YN : { type : "string", editable : false }, 
             ERR_MSG : { type : "string", editable : false }, 
             PAN_QTY : { type : "number" }, 
             SDANGA : { type : "number", editable : false }, 
             PANAMT : { type : "number", editable : false }, 
             JDANGA : { type : "number", editable : false }, 
             JAMT : { type : "number", editable : false }, 
             CURRENT_STOCK : { type : "number", editable : false }, 
             SUPPLY_DANGA : { type : "number", editable : false }, 
             SUPPLY_AMT : { type : "number", editable : false } 
            } 
           } 
          } 
         }, 

문서는 어떤 결과를 산출하지 않는다. 이것을 어떻게 할 수 있습니까?

답변

1

모델 정의에 defaultValue을 포함하십시오. 예 :

SDANGA : {type : "number", defaultValue : ""},