We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Help on how to change color of selected items in listbox?

Hi, 

I need help on how to change the color of selected items on a Listbox? 

Oliver



3 Replies 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team February 23, 2023 04:37 AM UTC

Hi Oliver,


We have checked your reported query and prepared the sample based on your requirement. kindly refer to the below UG link and code snippet.


UG link: https://blazor.syncfusion.com/documentation/listbox/style-and-appearance


<style>

    .e-listbox-container .e-list-item.e-selected {

        background-color: green !important;

    }

</style>


Output screenshot:

Graphical user interface

Description automatically generated with medium confidence


Get back to us if you need any further assistance on this. 


Regards,

YuvanShankar A


Attachment: Index_b1338d4b.zip

Marked as answer

OT oliver tejada February 23, 2023 06:43 PM UTC

Thank you.



YA YuvanShankar Arunagiri Syncfusion Team February 24, 2023 03:55 AM UTC

You are welcome, Oliver. Please get back to us if you need any further assistance on this.


If that post is helpful, please consider accepting it as the solution so that other members can locate it more quickly.


Loader.
Live Chat Icon For mobile
Up arrow icon