PDA

View Full Version : Problem including date field or comboBox in RowEditor



awitney
10 Sep 2010, 4:44 AM
Hi,

I have been trying to implement a RowEditor in a grid, but if i use a 'datecolumn' or a 'combo' as the editor then it tries to squash the comboBox or datecolumn into the RowNumber column, leaving the relevant column blank.

Even just pasting the code from the example:

http://dev.sencha.com/deploy/dev/examples/grid/row-editor.html

into my application breaks the date column.

I can't work out what might be causing this... is this likely to be a CSS problem? and if so where should I be looking?

thanks for any help

adam

Condor
10 Sep 2010, 4:51 AM
Yes, I assume it's css related.

Did you actually include RowEditor.css?
And is it correctly loaded (check the Firebug Net tab)?

awitney
10 Sep 2010, 4:58 AM
Thanks for your quick reply.

Yes, RowEditor.css is being loaded according to FireBug. I have also loaded grid-examples.css and examples.css to try and replicate the situation in row-editor.html as closely as possible, but still the same problem...

Condor
10 Sep 2010, 5:01 AM
Does the example from the Ext site show correctly on your browser?

awitney
10 Sep 2010, 5:03 AM
Yes, from the site, as well as from a local copy running from the extjs-3.2.1 directory

Condor
10 Sep 2010, 5:04 AM
Any you including any other css that could cause a conflict?

awitney
10 Sep 2010, 5:10 AM
Ah yes, I've found it.... there was a stray:

.x-form-field-wrap {position: static;}

that was causing the problem.

Thanks for your help

adam