Announcement

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

    How to keep previous inputed texts as history for TextItem widget in smartgwt?

    How to keep previous inputed text values as textbox history for TextItem widget in smartgwt? (For simple html textboxes holds previous values as history)

    ** Please show the attached image file.

    How this feature will be implemented for SmartGwt TextItems?

    We are using:
    SmartGwt 3.1
    Gwt 2.4.0
    Java 7
    Attached Files

    #2
    Hi rin2foru,

    did you try setAutoComplete()?

    Best regards,
    Blama

    Comment


      #3
      There has no property I have found named "setAutoComplete()" for textitem

      Hello Blama,

      I tried like this way,

      DynamicForm dynamicFormmain = new DynamicForm();
      dynamicFormmain.setWidth100();
      dynamicFormmain.setHeight100();
      dynamicFormmain.setMargin(5);
      dynamicFormmain.setNumCols(2);
      dynamicFormmain.setBorder("2px solid gray");
      dynamicFormmain.setAutoComplete(AutoComplete.NATIVE);

      TextItem txtDemo1 = new TextItem("txtDemo1");
      txtDemo1.setTitle("TESTING 1");
      txtDemo1.setColSpan(2);
      txtDemo1.setAutoComplete(AutoComplete.NATIVE);

      TextItem txtDemo2 = new TextItem("txtDemo2");
      txtDemo2.setTitle("TESTING 2");
      txtDemo2.setColSpan(2);
      txtDemo2.setAutoComplete(AutoComplete.NATIVE);


      dynamicFormmain.setItems(txtDemo1,txtDemo2);

      But, no effect.

      What to do? How can I get the textbox input history by clicking on textbox as a list, like html textboxes?

      Please give me a solution.

      Regards,
      rin2foru
      Last edited by rin2foru; 12 Apr 2015, 21:32. Reason: textitem.setAutoComplete(AutoComplete.NATIVE); not works

      Comment

      Working...
      X