解决方案 »

  1.   

    reconfigure( Ext.data.Store store, Ext.grid.ColumnModel colModel ) : void
    Reconfigures the grid to use a different Store and Column Model and fires the 'reconfigure' event. The View will be bound to the new objects and refreshed.
    Be aware that upon reconfiguring a GridPanel, certain existing settings may become invalidated. For example the configured autoExpandColumn may no longer exist in the new ColumnModel. Also, an existing PagingToolbar will still be bound to the old Store, and will need rebinding. Any plugins might also need reconfiguring with the new data.
    Parameters:
    store : Ext.data.Store
    The new Ext.data.Store object
    colModel : Ext.grid.ColumnModel
    The new Ext.grid.ColumnModel object
    Returns:
    void
      

  2.   

    如果你不想改变store也可以传入原来的store,只改变列模型,但是要注意的是与列模型和store相关的操作和设置可能要重新绑定,比如autoExpandColumn 、分页toolbar以及与此相关的插件等。
      

  3.   


    用ext同步http请求实现了,就是先取得fields的json,然后new出JsonStore来。其实这也是问题的核心核心所在。