I'm facing this really wierd problem with suggest box using extjs library.
What I'm trying to do is add a suggest box which have callback to search the database and return possible matches. Now when I add this suggest box on a window with mask tp the background the suggestions to the suggestbox goes behind the window and can not be seen below the suggestbox.
I can not use combobox because the call to the server needs to go only when user enters string in the box and the complete list it too big to be loaded in the combo box at the start.
Can someone please suggest me how this can be resolved?
Thanks in advance.
Vish.
Last edited by vishesh; 21 Feb 2009 at 5:48 PM.
Reason: Problem solved.
Well hope this explains what i'm trying to explain.
I have a suggest box:
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
oracle.add("Cat");
oracle.add("Dog");
oracle.add("Horse");
oracle.add("Canary");
SuggestBox box = new SuggestBox(oracle);
I need to add it to a window:
Window wd = new Window();
wd.setModal(true);
wd.setSize(200, 100);
wd.add(box);
wd.show();
Now when it is run the suggestbox shows up but when you try to type and lookup the suggesstions the suggestions doesnot show up because the window property hides the suggestions. The suggestion are actually behind the window wd.
Hope this explains what I'm facing and requesting.
Thanks.
Is your suggestion panel an item within the window? Otherwise, I could be overlooking this but your setModal to true could be preventing anything from displaying on top.
The suggestbox is added to the window as a widget. Kindly see the working code mentioned below. When you run it you will notice the suggestion for the word "c" gives the suggestions behind the window which is a problem if this suggestbox is a part of a form and is added with other elements in the window.
Thanks
Is your suggestion panel an item within the window? Otherwise, I could be overlooking this but your setModal to true could be preventing anything from displaying on top.
Even the setModal(false) does not allow to show the suggestions above the window.