wj-ComboBox displaying text customized

Posted by: kun.leeing on 25 May 2020, 2:54 pm EST

    • Post Options:
    • Link

    Posted 25 May 2020, 2:54 pm EST

    Hi Team,

    For a combobox like this, how can I make the combo text display customized? For instance, name + age as the displaying text on the combobox?

    <wj-combo-box [itemsSource]=“items”

    [displayMemberPath]=“‘name’ ‘age’”

    [(ngModel)]=“selected”>

    Thanks in advance.

  • Posted 26 May 2020, 4:20 pm EST

    Hi Kun,

    You will need to use the formatItem event of ComboBox to customize the display. Please refer to the sample link below:

    https://stackblitz.com/edit/ckkyne-s7b5df

    Regards,

    Ashwin

  • Posted 26 May 2020, 7:15 pm EST

    Hi Ashwin,

    Thanks so much, buddy. You are so helpful!

    Cheers,

    Kun

  • Posted 27 May 2020, 2:49 pm EST

    Hi Kun,

    Glad to be able to help. Let me in case you have any further issues.

    ~regards

Need extra support?

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

Learn More

Forum Channels