This is a migrated thread and some comments may be shown as answers.

jQuery Autocomplete

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sławomir
Top achievements
Rank 1
Sławomir asked on 12 Oct 2011, 01:39 PM
Hi, I'm using WebAii and now I have problem: how to open autocomplete from jquery ui. Now I have the following code:
nipTextBox.MouseClick();
browser.Desktop.KeyBoard.TypeText(nip);                 
browser.RefreshDomTree();     
            
var
 ul = browser.Find.jQuery().classes("ui-autocomplete").last<HtmlUnorderedList>();
var a = ul.AllItems.First().Find.jQuery().child().first<HtmlAnchor>();                 
a.MouseClick();

Unfortunatle autocomplete menu doesn't appear.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 17 Oct 2011, 08:38 PM
Hello SÅ‚awomir,

I apologize for the delay getting back to you.

I've found that usually it takes a double click to get such menus to open:

a.MouseClick(MouseClickType.LeftDoubleClick);


I tested using this demo page:
http://jquery.bassistance.de/autocomplete/demo/?

What I found on this page is the email input field required 2 double clicks before the menu would open.

If you have a sample page that I can study I can look into this some more.

Kind regards,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Sławomir
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or