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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CSS - Line Height

Thread ID:

Created:

Updated:

Platform:

Replies:

108164 Apr 7,2013 06:43 PM UTC Apr 11,2013 07:22 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Grid
Tony Basallo
Asked On April 7, 2013 06:43 PM UTC

The following classes in the default CSS have a line-height of .45em

.Syncfusion-Grid-Core .RowCell, .Syncfusion-Grid-Core .EmptyCell, .Syncfusion-Grid-Core tr[class*=ChildRow]>.ChildGrid

 

This means that if a cell is more than one line high then you start overlapping on text. This probably shouldn't even be set. Let the default line-height for the application be used (for td) - since you do not know how spaced I want my lines and there's no need to set it on a cell.


Bala Murugan A.S [Syncfusion]
Replied On April 11, 2013 07:22 AM UTC

Hi Tony,

 

Thanks for using Syncfusion Products.

 

We suggest you to use AutoWrap functionality this will enable the cells content to be wrapped if it exceeds the cell size.

Please refer the below links to know more about this feature.

 

help documentation: http://help.syncfusion.com/ug/asp.net%20mvc/grid/Documents/43autowrapupofcolumncells.htm

 

online sample:

 

AutoWrap:

http://mvc.syncfusion.com/demos/ui/grid/RowsandColumns/AutoWrapColumnCells

 

http://mvc.syncfusion.com/demos/ui/grid/RowsandColumns/Resize

 

[css code]

.Syncfusion-Grid-Core .AutoWrap .RowCell, .Syncfusion-Grid-Core .AutoWrap .HeaderCellDiv {

    line-height: normal;

    white-space: normal;

}

 

If we enable this feature the line height automatically adjusted based on the content of the grid cells.

 

Could you please provide more information of what is your exact requirement on this if the above feature doesn't meet your requirement?.

 

Please let us know if you have any concerns.

 

Regards,

Bala Murugan A.S


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.

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

;