Announcement

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

    Styled ComboBox with different valueField

    Hi,

    How to modify Styled ComboBox from Feature Explorer so the value of this form item would be itemID, not itemName.

    I don't want to break other features of this example, especially:
    - formatting of drop down items
    - displaying itemName of chosen item

    #2
    Anyone please?

    Suppose I have a datasource with following field names and items:

    Code:
    itemID    itemName
    1         Some Item
    2         Another Item
    3         And Another Item
    I basically want to have a selectItem bound to this datasource where:
    - selectItem.getValue() will return selected record itemID
    - I can style every item on pick list independently
    - selected item name will appear unstyled (raw itemName)

    After adding valueField to the example mentioned in my first post, styling stops working (formatCellValue defined in pickListProperties is never called).
    When I'm trying to use formatEditorValue method, the pick list is styled, but then selected value shows HTML tags used for styling instead of raw itemName.

    Am I missing something or this scenario isn't supported?

    Comment

    Working...
    X