0
votes

I am trying to add an editor to a cell, depending on the combo value selected in another cell.

consider there are 2 columns, with one column a combo editor applied. If I select index 1, the column 2 adds a date editor, else a string editor.

Basically I am building a Query Builder, so | | |

Thanks in advance!

2

2 Answers

0
votes

It's hard to give a specific answer without seeing some sample code, but the basic idea would be to have the "select" handler for column 1 call "setEditor()" on column 2 with the appropriate editor object.

For more details, take a look at the API docs - look up "ColumnModel"

0
votes

I think there is a bug in 4.0 which cause an error when you use setEditor(), but no one support or rebut me...