Adding text in listbox

Posted by: nivishapanwar on 19 February 2021, 1:44 am EST

  • Posted 19 February 2021, 1:44 am EST

    Hello,

    Can we add text in listbox before entering the list records.

    Thank You.

    Regards,

    Nivisha

  • Posted 21 February 2021, 11:35 pm EST

    Hi Nivisha,

    If the ListBox has no items, you can add an empty item to it which will display your message. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-duuorb

    Regards,

    Ashwin

  • Posted 24 February 2021, 6:58 pm EST

    Hi Ashwin,

    The requirement is with the records present inside the listbox. On the top the text is present then the records. Is that possible in wijmo listbox?

    I have attached the screen.

    Thank you.

    Regards,

    Nivisha

  • Posted 25 February 2021, 6:05 pm EST

    Hi Nivisha,

    As per my understanding, your requirement is to add a header-like text on the top of ListBox. It can be done by simply grouping the collection on an empty property so that all the items are displayed in a single group. The ListBox will automatically add a header on top.

    https://stackblitz.com/edit/js-s3cmse

    ~regards

Need extra support?

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

Learn More

Forum Channels