Hi,
How can I add suggestion box in grid. I can create a suggestion box with combo box and add it to the dynamic form. It works fine if I add it to the dynamic form, but unble to see the suggestion box when I add it to the listgrid field.
My suggestion box code is below
public class TestSuggestionBox extends ComboBoxItem {
public TestNumberSuggestionBox() {
setType("comboBox");
DataSource testDS = TestGwtRpcDataSource.getInstance();
setAutoFetchData(true);
ataDS.fetchData();
setOptionDataSource(testDS );
setValueField("id");
setDisplayField("name");
setShowPickerIcon(false);
setTextMatchStyle(TextMatchStyle.SUBSTRING);
setTextBoxStyle("gwt-SuggestBox");
}
}
my listgrid field code is below
TestSuggestionBox testSuggestionBox = new TestSuggestionBox ();
ListGridField test= new ListGridField("name");
test.setEditorType(testSuggestionBox );
test.setWidth(testSuggestionBox .getWidth());
test.setCanEdit(true);
When I add this code I am getting only text box but not the suggestion box. Please let me know how can I accomplish this.
Thanks in advance for your help.
Thanks
How can I add suggestion box in grid. I can create a suggestion box with combo box and add it to the dynamic form. It works fine if I add it to the dynamic form, but unble to see the suggestion box when I add it to the listgrid field.
My suggestion box code is below
public class TestSuggestionBox extends ComboBoxItem {
public TestNumberSuggestionBox() {
setType("comboBox");
DataSource testDS = TestGwtRpcDataSource.getInstance();
setAutoFetchData(true);
ataDS.fetchData();
setOptionDataSource(testDS );
setValueField("id");
setDisplayField("name");
setShowPickerIcon(false);
setTextMatchStyle(TextMatchStyle.SUBSTRING);
setTextBoxStyle("gwt-SuggestBox");
}
}
my listgrid field code is below
TestSuggestionBox testSuggestionBox = new TestSuggestionBox ();
ListGridField test= new ListGridField("name");
test.setEditorType(testSuggestionBox );
test.setWidth(testSuggestionBox .getWidth());
test.setCanEdit(true);
When I add this code I am getting only text box but not the suggestion box. Please let me know how can I accomplish this.
Thanks in advance for your help.
Thanks
Comment