ExtJs TreeGrid与编辑列。存在? [英] ExtJs TreeGrid with editor column. Exists?

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

问题描述

我需要一个在树形网格的网格列中编辑值的功能。只需在列的配置中添加一个编辑器就没有帮助。我正在使用ExtJs4 treepanel组件。

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版发布候选人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

添加一个Grid Editing插件,如下所示:

add a Grid Editing plugin, like this:

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

使至少一列可编辑为

editor:{
  xtype:'textfield'
}

你基本上是这样组合的:

You are basically combining this:

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天全站免登陆