Groups
Sign in
Groups
GWT Users
Conversations
About
Send feedback
Help
Disable SuggestionBox
140 views
Skip to first unread message
Charan
unread,
Aug 22, 2008, 5:06:49 AM
8/22/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
hi,
I want to know how can we disable SuggestBox , this is not supporting
either setEnabled() or setReadOnly() methods.
is there any in direct way to achieve this.
Thanks in advance
regards
Charan
joseanquiles
unread,
Aug 22, 2008, 12:28:45 PM
8/22/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Try:
public static void setEnabled(SuggestBox sb,boolean enabled) {
DOM.setElementPropertyBoolean(sb.getElement(), "disabled", !
enabled);
}
Regards,
José Antonio
walden
unread,
Aug 25, 2008, 7:41:58 AM
8/25/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
You can also pass in your own TextBox when you construct the SB:
TextBox tb = new TextBox();
SuggestBox sb = new SuggestBox(oracle, tb);
...and later disable the TextBox:
tb.setEnabled(false);
Reply all
Reply to author
Forward
0 new messages