1
這對於普通用戶來說可能非常簡單,但作爲一個新手,我很努力地執行
簡單的arithemetic操作,我希望乘以列值之一即(DealValue)減去0.05。我看着劍道文件,但令人驚訝的是我找不到任何相關的東西。任何人都有這個解決方案嗎?如果我運行這段代碼,我得到了錯誤在DealValue列的模板部分導致網格不被顯示。在Kendo UI Grid Grid上執行自定義算術操作
這裏是我的劍道格列定義
columns: [
{
field: "DealIssuer",
width: 150,
title: "Issuer",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains: "Contains"
}
}
},
template:"<a>${DealIssuer}</a>"
},
{
field: "Ticker",
width: 150,
title: "Ticker",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains: "Contains"
}
}
}
},
{
field: "DealExchange",
width: 150,
title: "Exchange",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains:"Contains"
}
}
}
},
{
field: "DealType",
width: 150,
title: "Type",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains: "Contains"
}
}
}
},
{
field: "DealValue",
width: 150,
title: "Value ($)",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains: "Contains"
}
}
},
template:'${${DealValue}*0.05}'
},
{
field: "DealStatus",
width: 150,
title: "Status",
filterable: {
operators: {
string: {
startswith: "Starts With",
contains: "Contains"
}
}
}
},
{
field: "DealPricingCompletionDate",
width: 230,
title: "DealPricingCompletionDate",
format: "{0:dd/MM/yyyy}",
// template: '#= kendo.toString(StartDate, "dd/MM/yyyy") #',
filterable: {
ui: "datetimepicker",
operators: {
date: {
gt: "After",
lt: "Before",
eq: "Equals"
},
messages: {
filter: "Apply",
clear: "Clear"
}
}
}
},
],