Hi,
I have a strange error with Kendo Grid. I have a model defined :
I have a grid which uses this model. In the grid I have rowTemplates defined. What I observed is, if in one of the columns which is editable, I put a 0 value and after, if I try to re-edit the same cell afterwards the numeric text box in the grid cell is not rendered. In some cases a simple input is rendered in other cases the value 0 disappears and no control is displayed in the cell.
Here is the column definition for the marked column in the attached image:
Do you have any kind of ideas what am I doing wrong?
Thanks in advance!!
I have a strange error with Kendo Grid. I have a model defined :
var
allocationGridModel =
new
kendo.data.Model({
id:
"Symbol"
,
fields: {
IsCheckedForDelete: { type:
"boolean"
},
AssetClassCode: { type:
"string"
, editable:
false
, nullable:
false
},
AssetClassColor: { type:
"string"
, editable:
false
, nullable:
false
},
Symbol: { type:
"string"
, editable:
false
, nullable:
false
},
SecurityDescription: { type:
"string"
, editable:
false
, nullable:
true
},
TargetAllocation: { type:
"number"
, editable:
true
, validation: { min: 0.01}, nullable:
false
},
DriftMin: { type:
"number"
, editable:
true
, nullable:
false
},
DriftMax: { type:
"number"
, editable:
true
, nullable:
false
},
MinBuyWeight: { type:
"number"
, editable:
true
, nullable:
true
},
MinBuyValue: { type:
"number"
, editable:
true
, nullable:
true
},
MinSellWeight: { type:
"number"
, editable:
true
, nullable:
true
},
MinSellValue: { type:
"number"
, editable:
true
, nullable:
true
},
SellOrder: { type:
"number"
, editable:
true
, nullable:
false
},
IsInFavorites: { type:
"boolean"
, editable:
false
,nullable:
true
},
Equivalences : {type :
"string"
, editable:
false
,nullable:
true
}
}
});
I have a grid which uses this model. In the grid I have rowTemplates defined. What I observed is, if in one of the columns which is editable, I put a 0 value and after, if I try to re-edit the same cell afterwards the numeric text box in the grid cell is not rendered. In some cases a simple input is rendered in other cases the value 0 disappears and no control is displayed in the cell.
Here is the column definition for the marked column in the attached image:
{
field:
"MinBuyWeight"
,
title:
"Min Buy Weight"
,
template:
'<div style="text-align:right;">#= kendo.toString(MinBuyWeight,"0.00") # % OR</div>'
,
width:
"90px"
}
Do you have any kind of ideas what am I doing wrong?
Thanks in advance!!