dhtmlxcombo get typed value


i’m using dhtmlxcombo with filtering mode to search within list of results.

i’ld like to achieve the following:

i want to retrieve the string enterd by the user before chosing some option out of the list.

so if i enter the string “shell” i will get the following results

shell nederland

shell nederland bv

shell rafinaderij bv

if i chose the first result and i notice that i’ve selected the wrong one i want to go back to the page but with my search string in the combobox.

any ideas how to achieve that?

kind regards,


There is no way to catch moment when text string still exists in grid and exactly before new option selected ( without code modifications ), but you can use onKeyPressed event to track typed text

var last_text="";




    // last_text ==  typed string