Announcement

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

    smart filter not working on custombox item in custom editor list grid

    Hi Isomorphic,

    My application is using SmartGWT + Spring + Hibernate.

    I have made the customize editor list grid.It fetches its record from datasource. Now each record has multiple custombox item with picklist dropdown.
    I have below code for customboxitem for each cell.Now when i click on this particular cell and start writing in it then it is not applying the smart filter on the written text rather the complete picklist as drop down is being shown.
    When i set the selectItem.setAutoFetchData(true); then it work as expected but not working otherwise.May you please help me out.

    DataSource codeDS = DataSource.get(ClientConstants.CODE_DS);
    final ComboBoxItem selectItem = new ComboBoxItem();
    selectItem.setPickListWidth(300);
    ListGridField codeField = new ListGridField(CODE_FIELD);
    codeField.setWidth(100);
    codeField.setTitle(VIEW_MESSAGE.code());
    ListGridField codeDescField = new ListGridField(DESCRIPTION);
    codeDescField.setTitle(VIEW_MESSAGE.descripiton_label());
    codeDescField.setWidth("100%");
    selectItem.setDisplayField(CODE_FIELD);
    selectItem.setValueField(CODE_FIELD);
    selectItem.setPickListFields(codeField, codeDescField);
    selectItem.setOptionDataSource(codeDS);
    selectItem.setAllowEmptyValue(true);
    selectItem.setSortField(0);
    Criteria criteria = new Criteria();
    criteria.addCriteria(CONDITION_ATTR_NAME, ClientConstants.DOOR_OR_FRAME_NAME_FIELD);
    selectItem.setOptionCriteria(criteria);
    selectItem.setAutoFetchData(false);
    selectItem.setAddUnknownValues(false);

    Could you please help on this?

    #2
    See docs for optionCriteria. You probably meant to specify pickListCriteria.

    Comment


      #3
      We tried with picklistCriteria but it didn't work out.Smart filtering is not working while typing but start working when we are deleting text.May you please help on this.

      Comment


        #4
        We see filtering working as expected in numerous samples and automated tests, so we will need some way to reproduce the problem you are seeing.

        Comment

        Working...
        X