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

Best way to wrap text in td

Thread ID:





129432 Mar 17,2017 09:04 AM UTC Mar 20,2017 05:20 AM UTC JavaScript 1
Tags: ejGrid
Stefano Enrico
Asked On March 17, 2017 09:04 AM UTC


what is the best way to wrap the text in the cell (TD)?
I need to apply a CSS class to content


Saravanan Arunachalam [Syncfusion]
Replied On March 20, 2017 05:20 AM UTC

Hi Stefano, 
Thanks for contacting Syncfusion’s support. 
We have analyzed your requirement, we have inbuilt support to wrap the cell content by defining the allowTextWrap property of ejGrid as true and we can apply this auto wrap specifically for content/header/both (default) by defining the textWrapSettings->wrapMode property of ejGrid. Please refer to the below online api reference and sample links. 
Note: When enable the allowTextWrap property, the sentence will wrap based on the words and if the cell has single word, it will not wrap. So, we suggest you to use below style in your project, if you want to wrap even a single word.  
        .e-grid .e-gridcontent{ 
And also refer the following stackoverflow link. 
Saravanan A. 


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