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

Change Font size and size of the checkbox in the Listbox

Thread ID:

Created:

Updated:

Platform:

Replies:

144529 May 10,2019 06:45 AM UTC May 14,2019 06:49 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: ListBox
Peter Rosenstein
Asked On May 10, 2019 06:45 AM UTC

Hello,
i am new to ej2 for .net mvc.
How can i change the font size and checkbox size in the Listbox ?
with best regards
Peter 

Christopher Issac Sunder K [Syncfusion]
Replied On May 13, 2019 10:21 AM UTC

Hi Peter, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement “To change the font size and checkbox size in listbox”. And we would like to let you know that your requirement can be achievable in EJ2 ListBox as like in the below code example. 
 
Code Example: 
 
 /*for list customization*/ 
 .e-css.e-checkbox-wrapper .e-frame{ 
   height:20px; 
   width:20px; 
   line-height: 11px; 
} 
 /*for checkbox customization*/ 
 .e-listbox-wrapper{ 
    font-size:20px; 
} 
For your convenience, we have prepared the sample based on your requirement. Please find the link below. 
 
 
Could you please check the above sample and get back to us, if you need any further assistance on this. 

Thanks, 
Christo 


Peter Rosenstein
Replied On May 13, 2019 07:48 PM UTC

Hello,
thank you for your reply, no i have an idee about the css use in ej2.

i modified you suggestion a little bit:

.e-css.e-checkbox-wrapper .e-frame {
    height15px;
    width15px;
    line-height15px;
}
 
.e-listbox-wrapper:not(.e-list-template) .e-list-item,
.e-listbox-wrapper .e-selectall-parent {
    font-size14px;
    height20px;
    line-height20px;
    padding0 10px;
    positionrelative;
}

Prince Oliver [Syncfusion]
Replied On May 14, 2019 06:49 AM UTC

Hi Peter, 

Most welcome. We are glad that the issue is resolved in your end. 

Regards, 
Prince 


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