Combobox selected values are right justified

Hello There,

I am facing one problem, not sure whether its possible with combobox or not.
when i type something in combobox and select a value(which matches with my input string ), cursor blinks at the end of selected value so selected value is right justified.

its ok when i type and select a value however when i am done with selection and have clicked on some other control still selected value is right justified.

Is there any way that when i am done with combobox selection and have clicked on some other control then value which i have selected in combobox is left justified ?

Thanks
Yogen

Could you provide us screenshots with the fact result and expecting?
Or direct link (or completed demo) to reproduce this behavior?
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Thanks Darya,

Please find attached screen shot.

It is a standard browser behavior.
If you need some changes - you can get input:
inp = combo.DOMelem_input
And set all you need to it.

Thanks Darya.

You are welcome!

Hi Darya,

Could you please confirm how and where input code which you have suggested should be used

lets say i have combobox name select1.

Thanks
Yogen

DHTMLXCombo does not provide such a ready solution. You need to use own solution for move cursor to the beginning of the input.

Thanks Darya,

For using DOMelem_input, do i have to modify dhtmlxcombo.js and add my function similar to below into it or it can be done after initializing combobox ?

dhtmlxEvent(combo.DOMelem_input, “keypress”, function(e){
e = e||event;
var code = e.which||e.keyCode;
if (code >=48 && code < 58) return true;

		e.cancelBubble=true;
		if (e.preventDefault) e.preventDefault();
		return false;
	});

Thanks