Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    add suggestion box in listgrid

    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
    Last edited by smartgwtuser; 29 Oct 2010, 12:21.

    #2
    Hi,
    Can any one please help on this. I've been trying to solve this for long time.

    Thanks

    Comment


      #3
      Hi,
      this code works on IE6 and firefox, but not on IE8. Do you have any nightly build or patch on this. I am using smartgwt 2.1.

      Thanks

      Comment


        #4
        We just verified that this is working fine with all recent nightly builds (in IE 8).

        If you haven't already, try with a recent nightly build.
        If you continue to see problems and believe you've found a bug in SmartGWT, please post a standalone example that demonstrates the problem that we can run on our end

        Regards
        Isomorphic Software

        Comment

        Working...
        X