Categories | Question details Back To List | ||
dhtmlxcombo get typed value Hi, 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, Nasir Answer posted by Support on Feb 29, 2008 09:45 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=""; combo.attachEvent("onKeyPressed",function(ev){ last_text=combo.getComboText(); }); combo.attachEvent("onChange",function(ev){ // last_text == typed string }); |