javascript - Kendo grid initializing number cells -


by default, fields in datasource marked number have cells filled initial value of 0. i'd have cells empty when grid created without turning field string.

the below row added calling 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 }                                     }                                 }                             }                         }, 

documentation yielded no result. how can accomplish this?

in model definition include defaultvalue. example:

sdanga : { type : "number", defaultvalue: "" },


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -