Announcement

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

    TreeGrid filter with SelectItem - setValueMap not showing values

    I am using SmartGwt 3.0, GWT 2.4.0 in IE9.

    I have a treeGrid in which i customize a field filter to be a SelectItem as follows:

    ...
    TreeGridField field = new TreeGridField(...);
    SelectItem selectItem = new SelectItem();
    selectItem .setShowTitle(false);
    LinkedHashMap<String, String> lmapKeyLabel = new LinkedHashMap<String, String>();
    for(...) {
    lmapStatusLabel.put(key, "<b>"+label+"</b>");
    }
    selectItem.setValueMap(lmapKeyLabel);
    field.setFilterEditorType(selectItem);
    treeGrid.refreshFields();
    ...

    What happens is that on the treegrid filter the presented values on the SelectItem are the keys and not the labels.
    The same happens with a ComboBoxItem.

    Has this happenned to someone? Am i doing something wrong?

    Can anyone help me?

    Thank you,
    mif
    Last edited by miferreira; 15 Feb 2012, 04:57.
Working...
X