PDA

View Full Version : different values for a ComboBox on each row of an EditorGrid



andreik65
19 Feb 2009, 11:49 PM
Hello,

I'm trying to manage different values for a ComboBox on each row of an EditorGrid.

Basically, a column of the grid is a ComboBox whose selectable values are not statically defined at grid build time, but change every time the user selects a different row.

Currently I'm using gwt-ext where they provided a method setUserCustomCellEditor on ColumnModel. You can pass it a subclass of UserCustomCellEditor. It's got one method, public GridEditor getCellEditor(int colIndex, int rowIndex). It's called any time a cell is about to enter editing. It gives me the ability to initialize the ComboBox with different values.

How can I do it with Ext GWT?

Thanks.
Andrea

odwyers
12 Jan 2011, 1:53 PM
We are looking for this functionality as well in GXT where we can override a ColumnModel method getCellEditor(col, row) and provide a row specific cell editor for an EditorGrid.
Has anyone achieved this ?

Thanks,

Sean

routologic
9 Jan 2012, 3:13 AM
Hi all,

we would also need the functionality in GXT to have different cell editors depending on the actual row data...
Has anyone found a solution so far?

Thanks,
Gergely