日期:2014-05-16  浏览次数:20379 次

extjs 不懂啊不懂啊,不懂啊,纠结
怎么用extjs 用列表的形式显示数据一行行的,然后双击每一行就能显示那一行的详细信息,可编辑。。可不可以写个小例子啊,请指点,谢谢了!!
extjs

------解决方案--------------------
他本身就带你说的sample的
------解决方案--------------------
ext包\examples\grid\row-editor.html 这个例子,他用了个row-editor组件,不是很难的,你先看看,有什么问题接着问。
------解决方案--------------------
引用:
Quote: 引用:

ext包\examples\grid\row-editor.html 这个例子,他用了个row-editor组件,不是很难的,你先看看,有什么问题接着问。

ext 里面可以自定义带参数的函数么?字段太多,频繁要用 那个fromPanel,我想写成方法,好像不行,太乱了....不会组织,新手ing!!!

我不是很明白你希望怎么做,如果想用对象模型来封装你自己的EXTJS组件,你可以试试这样写你的JS。

namespace.DIYComponent = function(config){
      namespace.DIYComponent.superclass.constructor.call(this,{
           width:config.width,
           frame:config.frame,
           items:config.items,
           listeners:{
             'render':function(){
                 this.istMethod()
             }
           }       
  })
}
Ext.extend(namespace.DIYComponent,Ext.Panel,{
      1stMethod:function(){},
      2stMethod:function(){}

});
在onReady函数里实例化 new namespace.DIYComponent(config)

------解决方案--------------------
监听 itemclick 事件..它传入参数就有一个 record