EditorGrid怎么设置多选,最好帖出代码
谢谢各位了!

解决方案 »

  1.   

    grid里加
    sm:new Ext.grid.RowSelectionModel()
    或者
    sm:new Ext.grid.CheckboxSelectionModel()
      

  2.   

    var grid = new Ext.grid.EditorGridPanel({
    renderTo:"grid",
    height:Ext.get('grid').getComputedHeight(),
    width:Ext.get('grid').getComputedWidth() , 
    sm:new Ext.grid.RowSelectionModel(),
    cm:colM,
    store:store,
    });我在这里加了没反应,刚学这东西
    请教了!
      

  3.   


    先在grid外面定义
    var sm=new Ext.grid.RowSelectionModel();
    然后 colM里面也要加上
    colm=new Ext.grid.ColumnModel([sm , ...]);sm改成这样
    sm:sm
      

  4.   

    用Ext.grid.CheckboxSelectionModel()可以,var sm=new Ext.grid.RowSelectionModel(); 这个不行哥们,在问一下
    我在加一个编号的列呢,就是new Ext.grid.RowNumberer()这个。。
    用什么表示的?
      

  5.   

    这个也可以放到colm里面,比如sm后面