带有编辑器列的 ExtJs TreeGrid.存在吗? [英] ExtJs TreeGrid with editor column. Exists?

查看:19
本文介绍了带有编辑器列的 ExtJs TreeGrid.存在吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够编辑树形网格的网格列中的值.简单地将编辑器添加到列的配置中并没有帮助.我正在使用 ExtJs4 树面板组件.

I need an ability to edit values in a grid column of a treegrid. Simply adding a editor to the column's config didn't helped. I'm using ExtJs4 treepanel component.

有什么想法吗?

推荐答案

是的,它存在.

我建议使用最新版本,目前是 4.1 Release Candidate 1.

I would recommend using the latest version, which at this time is 4.1 Release Candidate 1.

使用 Ext.Tree.Panel

Use an Ext.Tree.Panel

添加一个网格编辑插件,如下所示:

add a Grid Editing plugin, like this:

  plugins:[
    Ext.create('Ext.grid.plugin.CellEditing', {
      clicksToEdit:2
    })
  ]

至少让其中一列像这样可编辑

make at least one of the columns editable like this

editor:{
  xtype:'textfield'
}

你基本上结合了这个:

http://docs.sencha.com/ext-js/4-0/#!/example/tree/treegrid.html

还有这个:

http://docs.sencha.com/ext-js/4-0/#!/example/grid/cell-editing.html

这篇关于带有编辑器列的 ExtJs TreeGrid.存在吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆