grid combo auto-select

Hello,

I init the combo inside a grid like this:

When the user tabs or opens the cell, I’d like to have whatever is in the combo auto-selected. I have tried using this.editor.obj.select() during stage 1 of cell editing, but it does not work.

When I don’t use xmlcontent and init the combo and options using dhtmlXComboFromSelect, it behaves as I want.

Please help!

Hello,

I have tried using this.editor.obj.select() during stage 1 of cell editing, but it does not work.

try to apply select() to the this.editor.combo.DOMelem_input:

grid.attachEvent("onEditCell",function(stage,rowId,columnIndex){ if(stage==1&&this.editor.combo){ this.editor.combo.DOMelem_input.select(); } return true })

Works perfect!

Thanks!