Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem MultiComboBox display selected object (SmartClient v9.1p_20)

$
0
0
Hi Isomorphic,

I tried to make a MultiComboBox to select several units of a company.
To make the hirachy visible I inserted &nbsp spaces to indent the names in the list.

The problem now is that when you select one of the items, which have have these spaces in front of it, they will be displayed.
So the selected item will be shown as "    Lower Unit" instead of " Lower Unit"
When the set editor type "comboBox" isn't set, the names will be shown correctly.

My comboBox and objects looks like that:

Code:

isc.DynamicForm.create({
    fields: [{
          "type":"text",
          "editorType":"comboBox",
      "valueMap":
          {
          1:"None",
          2:"Top Unit",
          3:"  Midunit",
          4:"    Lower Unit",
          5:"  Second Midunit",
          6:"    Second Lower Unit"
          }
    }]
});

Is there a fix to show the selected item with real spaces instead of the string " "?

Greetings Benedikt

Viewing all articles
Browse latest Browse all 4756

Trending Articles