请问Ext如何在一个表格里面添加按钮??
请知道的帮帮忙吧,谢谢。。

解决方案 »

  1.   

    给操作列中添加“删除”按钮
    { header: "操作", dataIndex: "id", renderer: function(value, metadata, record, rowIndex, colIndex, store) {
        return "<input type='button' id='btn' value="删除" style="width:40;"/>";
     }
    }
      

  2.   

    额,谢谢楼上,请问可以在表格里面添加Ext的按钮吗  ??
      

  3.   

    应该可以的,其实ext的按钮也就是table+div+css样式的都是html代码
      

  4.   

    <em unselectable="on">
    <button id="ext-gen23" class="x-btn-text" type="button">按钮</button>
    </em>
    这是ext的按钮转换后的html