Announcement

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

    How to set the parentidfield for Combobox with dataSetType: tree?

    Hi,

    How do I set the parentidfield for a combobox with dataSetType: tree?
    I see that there is a pickTreeConstructor, which tells the combobox to use the PickTreeMenu, but I cannot see how to access the PickTreeMenu to set the parentidfield?

    I'm using v12.1p_2020-08-16/Enterprise Development Only (built 2020-08-16)

    Thanks!

    #2
    pickListProperties is used for both types of picker (TreeGrid is a ListGrid), so you can do it via dataProperties, like this:

    Code:
        ...
        pickListProperties: {
            dataProperties: {
                modelType: "parent",
                idField: "id",
                parentIdField: "parentId"
            }
        }

    Comment

    Working...
    X