PDA

View Full Version : editor grid + combobox + how clear combo value?



diegolovison
22 Dec 2010, 10:54 AM
on http://www.sencha.com/examples/explorer.html#editablegrid
click on the first line, on the column "Light", select all text, press delete and press tab...
go to the next column...

but the value of the combo isnt set equals null..

how I can change this behaviour?
thanks

sven
22 Dec 2010, 11:05 AM
Pressing tab selects the currently selected item in the drop down. The KeyNav in ComboBox is doing this. You will need to extend combobox and remove this.

diegolovison
23 Dec 2010, 2:33 AM
hmm... you think change this?
its strange... I remove the selected item, I would like set equals null...

diegolovison
23 Dec 2010, 2:35 AM
http://www.sencha.com/forum/showthread.php?23843-Clear-combo-box-value

sven
23 Dec 2010, 2:36 AM
The ComboBox is expanded and so when pressing tab it selects the item.

diegolovison
23 Dec 2010, 3:30 AM
http://dev.sencha.com/deploy/dev/examples/grid/edit-grid.html


is different from GXT....

If you clear the value and press tab.. will set the value equals null

sven
23 Dec 2010, 3:33 AM
ExtJS is not GXT. Changing any behaviour now is a braking change. Also its doing exactly the same thing.

diegolovison
23 Dec 2010, 3:42 AM
ExtJS is not GXT
I dont know... thanks to told me :D
I was compare ext and gxt


Also its doing exactly the same thing.
????

sven
23 Dec 2010, 3:44 AM
Remove the text in the input field with the backward key, wait until combobox expands automatically, press tab -> value selected. Same happens in GXT.

diegolovison
23 Dec 2010, 3:51 AM
is true...

in extjs
if you press delete the combo dont expand...

in gxt
if you press delete the combo expand...

ok... I will overwrite the method.. and change this...

you think change this on gxt3?

or add setExpandOnKeyPressBackspaceOrKeyPressDelete :D