本帖最后由 yo_you920821 于 2013-05-16 16:17:07 编辑

解决方案 »

  1.   

    如果项目还在开发阶段,就先把ext-all.js换成ext-all-debug.js吧。先将 insertFields 封装成 record.
    var rec = new Ext.data.Record(insertFields);store.insert(1, rec) : void
    Inserts Records into the Store at the given index and fires the add event. See also add and addSorted.
      

  2.   


    但是insertStore不是空的吗?直接var rec = new Ext.data.Record(insertFields);store.insert(1, rec);插入的不是一条空的数据吗?
      

  3.   


    ,listeners:{
    'afterrender':function(g){               
    var arr = [];
                g.getStore().each(function(record){
                   arr.push(record.data);
                },this)
    }
            store.loadData(arr);
    }
      

  4.   


    谢谢,我直接修改了开始store的数据源,直接在存储过程里面增加了一条了,然后用Group的SORT属性弄到了第一列,不过还是很感谢你。