解决办法:拼接HTML
var tplchecked = '<input type="checkbox" {0}>'; var IsChecked = function (value) { return String.format(tplchecked, (value > 0) ? 'checked' : '', value); }
<ext:Column Header="是否开模" DataIndex="是否开模" Width="60"> <Renderer Fn="IsChecked" /> </ext:Column> <ext:Column Header="是否收费" DataIndex="是否收费" Width="60"> <Renderer Fn="IsChecked" /> </ext:Column> <ext:Column Header="是否做认证" DataIndex="是否做认证" Width="60"> <Renderer Fn="IsChecked" /> </ext:Column>