2011年6月5日星期日

  Ext4的direct+grid+RowEditing在ie中的奇怪问题

调试了半天,还是没有成功解决,只好发上来让各位看看。

环境:Ext4,DirectStore+grid.Panel+RowEditing插件

在firefox和chrome中一切正常,在ie中出现以下问题:

凡是store重新加载(包括服务器端排序和翻页)之后显示RowEditing,都会报“未指明的错误”,报错的位置是

ext-all.js中getXY函数中的b = el.getBoundingClientRect();

如果是本地排序就没有问题。

不知道还有没有人遇见过?

   // 创建filesStore  Ext.create( ' Ext.data.DirectStore ' , { model:  ' File ' , storeId:  ' filesStore ' , autoLoad:  true ,  // autoSync: true,   remoteSort:  false , api: { create: MyApp.FileAction.Create, read: MyApp.FileAction.LoadAll, update:  function (rec){MyApp.FileAction.Update(rec,callback);}, destroy: MyApp.FileAction.Destroy }, writer:  new  Ext.data.JsonWriter({ encode:  false , writeAllFields:  true  }), idProperty:  ' id ' , totalProperty:  ' total ' , root:  ' data ' , sorters: [{ property:  ' datetimeCreated ' , direction:  ' DESC '  }] });

没有评论:

发表评论