Selectize list searchable by label not value

Selectize list searchable by label not value

mak1mak1 Posts: 25Questions: 13Answers: 1

How can I make the datatable searchable by the label of the column in a dropdown and not the value?

I have a selectize list

, {
                label: "Holder:",
                name: "holder.value",
                "type": "selectize",
                "options":{{=asis(holders)}}
            },

where holders is a list of label,value pairs.

My datatable has:

        { data: 'holder.label',editField: 'holder.value',title: 'Holder', defaultContent: ""},

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    What does {{=asis(holders)}} resolve to be?

    You may need to set the valueField and labelField options in the selectize configuration. See the Selectize documentation.

    Allan

This discussion has been closed.