Ext.Net 1.x_Ext.Net.GridPanel嵌套Checkbox

时间:2022-04-09 22:33:39

解决办法:拼接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>

Ext.Net 1.x_Ext.Net.GridPanel嵌套Checkbox