dhtmlxCombo: Manage cursor


i build a search form in my application and all combo’s have relation to each combo. So i had to fire a onChange event and load combo’s again with reduced content. That is going right.

Well, but after the element fired and all boxes reloaded the cursor is pointing to the first combobox in form.

Could someone help me?

DhtmlX Version: 3.5

Could you please provide us completed demo to reproduce the issue locally?
docs.dhtmlx.com/doku.php?id=othe … leted_demo

hm. its hard to do that because its a complex application :confused:

May be you can provide us a direct link to this project?
But according to demo: you can dowgrade it to simple form+combo.

Sorry, thats not possible, because of company’s restrictions :frowning:

Could you define on which point the cursor is set into the combo input field? i think i could solve the problem by myself if i get help in this way

thank you!

More info:

i use “enableFilteringMode” when leaving a combo box so that all boxes reloaded with related contents

first step fill some values

leave field “CCM” and cursor switch to the first combo box (note that comboboxes all reloaded and also get a select option

May be you can try to save the last focused combo and set focus to it by setItemFocus() method manually?

this is what i tried first:


but i get:

Uncaught TypeError: undefined is not a function 

ok. i found a mistake

i think thats a good way.

One question. it is possible to remove the focus? I tried to set it on a hidden element, but this seems to be not possible

Ok, my problem is solved. remove cursor is anything we need :slight_smile:

Thank you very much

You are welcome!

Hi, how did you do that the combos have relation with the other when the event onchange is fire.

Hi, diegoalex29
You can try to use approach from local sample