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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

lisebox with multi column

Thread ID:

Created:

Updated:

Platform:

Replies:

147947 Sep 28,2019 04:36 PM UTC Sep 30,2019 10:12 AM UTC Blazor 1
loading
Tags: ListBox
ebi torabi
Asked On September 28, 2019 04:36 PM UTC

I would like to have a listbox that shows information in multiple columns similar to the attached screenshot, not one column. If possible, please give an example


Attachment: multilineListBox_6072948d.rar

Sangeetha Priya Murugan [Syncfusion]
Replied On September 30, 2019 10:12 AM UTC

Hi Ebi, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement “To show the ListBox items in multiple columns” and it can be achievable in listbox with using CssClass property as like in the below code example. 
 
Code Block: 
 
<EjsListBox Value=@Value DataSource="@Data" TValue="string[]" CssClass="e-custom"> 
    <ListBoxSelectionSettings ShowCheckbox="true"></ListBoxSelectionSettings> 
</EjsListBox> 
 
<style> 
    .e-listbox-wrapper .e-list-parent { 
        display: flex; 
        flex-wrap: wrap; 
    } 
 
    @@media (min-width: 320px) and (max-width:480px) { 
        .e-custom .e-list-item { 
            width: 100%; 
        } 
    } 
 
    @@media (min-width: 480px) and (max-width:780px) { 
        .e-custom .e-list-item { 
            width: 50%; 
        } 
    } 
 
    @@media (min-width: 780px) and (max-width:1920px) { 
        .e-custom .e-list-item { 
            width: 25%; 
        } 
    } 
</style> 
 
 
For you convenience, we have prepared the sample based on our suggestion. Please find the sample link below. 
 
 
Could you please check the above sample and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon