PDA

View Full Version : TreeGrid and ComboBox



Urkman
9 Sep 2010, 8:10 AM
Hello,

is it possible to have a ComboBox in a column of a TreeGrid or perhaps of a ColumnTree?

Thanks for your help,
Urkman

alei.alhepSoft
9 Sep 2010, 9:31 AM
I think there is not a EditorTreeGrid in ExtJs but yes in ExtGWT.If you want a combobox in the treegrid you have to make a EditorTreeGrid extending of the TreeGrid.

Urkman
10 Sep 2010, 12:43 AM
Hello,

thanks for your answer.

I don't need a EditorTreeGrid, I just want do display a comboBox in a column.
Perhaps this can be done using a renderer or something else...

I need this to edit the rights in an application. My rights are displayed using a tree and each right can be "read", "read/write" or "none"...
So I want to display these comboBoxes and after editing is ready, I want to iterate over these comboBoxes and send the values to the server...

Greetings,
Urkman

Condor
10 Sep 2010, 12:46 AM
Yes, you can render comboboxes to the nodes after they are rendered, but you have to watch for memory leaks (you have to destroy the combobox when the node is removed).