ExtJs TreeGrid with editor column. Exists?
Asked Answered
M

2

9

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.

enter image description here

Any ideas?

Muddle answered 16/2, 2012 at 13:30 Comment(3)
try to change the 'xtype' of the columnAudiology
didn't get you? how xtype allows editing?Muddle
I'm using extjs4, your link is about extjs3Muddle
O
8

Yup, it exists.

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

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'
}

You are basically combining this:

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

and this:

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

Ogg answered 3/4, 2012 at 5:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.