Announcement

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

    MultiPickerItem - Development release

    Hi,

    I already mentioned this in the smartclient forums, but that might be the wrong place.
    But the development release contains a new feature called MultiPickerItem.
    Which can be used as a FilterEditor.

    I have created an example to see how this works. But somehow the multiepicker is not being shown.
    [HTML]
    DataSourceBooleanField indexfield = new DataSourceBooleanField("dataIndex", "Index");
    DataSourceTextField nameField = new DataSourceTextField("dataName", "Name");
    DataSourceIntegerField agefield = new DataSourceIntegerField("dataAge", "Age");
    DataSourceDateField dateField = new DataSourceDateField("dataDate", "Date");

    MultiPickerItem multiItem = new MultiPickerItem();
    multiItem = multiItem.setSortDirection(SortDirection.ASCENDING);

    multiItem.setAllowExpressions(true);
    multiItem = multiItem.setDeriveUniqueValues(true);
    nameField.setFilterEditorProperties(multiItem);
    agefield.setFilterEditorProperties(multiItem);
    dateField.setFilterEditorProperties(multiItem);


    setFields(indexfield, nameField, agefield, dateField);
    setTestData(SampleData.getRecords());
    setClientOnly(true);
    [/HTML]

    As you can see i add the multipickeritem to each datasourcefield.
    the attahced TableFilterDialog, shows how the listgrid is set up.

    What am i missing?

    Regards,

    Jasper

    Attached Files

    #2
    You need to set data for the MultiPickerItem using setValueMap() or setOptionDataSource(). Refer to the documentation for more information.

    Regards
    Isomorphic Software

    Comment

    Working...
    X