Announcement

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

    Disable some records of the multi select dropdown

    Hi ,

    We are using smart gwt 6.0 p version. And our requirement is to disable some records based on some condition in the multi select dropdown which is bind to optiondatasource. Please advice . Below is the code

    SelectItem selector = new SelectItem();
    ListGridField codeId= new ListGridField("codeId");
    ListGridField description= new ListGridField("description");
    selector.setOptionDataSource(materialAttrDataSource);
    selector.setMultiple(true);
    selector.setDisplayField("code");
    selector.setValueField("code");
    selector.setPickListFields(code,description);

    Based on the codeIds we want to disable some of the records of the drop down data. how can we achieve this

    Many thanks in advance.

    #2
    The PickList is a subclass of ListGrid, so ListGrid.recordEnabledProperty can be used as usual.

    Comment

    Working...
    X