programatically type into combo client side

2 posts, 0 answers
  1. Felbrigg
    Felbrigg avatar
    5 posts
    Member since:
    May 2013

    Posted 14 May 2013 Link to this post

    I have a combo on a web form. It correctly uses the server side _ItemsRequested event to populate the drop down and filter the list as the user types.

    I now have a need to programmatically type into that combo using JavaScript. 

    I'd like the combo to react as if the user had typed into the combo.

    I've tried using the "set_text('blah')" method on the combo, but this does not cause the combo to popup the filtered list in the same way as if a user had typed.

    Is this even possible?
  2. Felbrigg
    Felbrigg avatar
    5 posts
    Member since:
    May 2013

    Posted 14 May 2013 Link to this post

    Never mind.  I've got the answer.

    I use set_text to type into the combo and then call the showDropDown
    var combo = $find('theComboId');
    combo.clearSelection();
    combo.set_text('f');
    combo.showDropDown();


     

     

     

     

     

     

Back to Top