Associating some value with combobox item

Posted by: a.koneva on 13 May 2022, 2:07 pm EST

    • Post Options:
    • Link

    Posted 13 May 2022, 2:07 pm EST

    Hi

    I would like to associate some additional value, for example, string value with each combox item in CComboBox. And also I would like to be able to get this value from the item when the item is selected. How can I implement it in C1?

    In Telerik these is a property like Tag, but in C1 I don’t know how to do it.

    Best regards,

    Anna

  • Posted 15 May 2022, 3:08 pm EST

    Hi Anna,

    There is no property in the C1ComboBox to associate some additional value with the items. You can easily maintain the Tag values for the items in a dictionary and fetch these values when the item is selected. Kindly refer to the attached sample showing the same.

    ComboBoxSample.zip

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels