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

column text wrapping


I'm trying to get the text in columns with specific width to wrap to the next line if the text is too long but it's not working. I specified allowTextWrap:true on the ejGrid according to the documentation but it doesn't work. Can you please provide an example of text wrapping.


3 Replies

MF Mohammed Farook J Syncfusion Team November 13, 2014 10:05 AM UTC

Hi Hoang,

Thanks for using Syncfusion products.

We have analyzed the reported issue “Scrolling option disable in grid the “autoTextWrap “property is not working in grid”.We have confirmed that the issue with “AllowTextWrap ” is a defect and we have logged a defect report. The fix for this issue is estimated to be available on Vol 3 Service Pack 1 release at third week of November 2014.

But as workaround we have overridden the “white-space” css property of Grid row cell to resolve the  issue. Please refers the following code snippets.


       .e-rowcell {

            white-space: normal !important;



<div id="Grid"></div>


    <script type="text/javascript">


                // the datasource "window.gridData" is referred from jsondata.min.js

                dataSource: window.gridData,




                columns: [

                             { field: "OrderID", headerText: "Order ID",  textAlign: ej.TextAlign.Right},

                             { field: "EmployeeID", headerText: "Employee ID", textAlign: ej.TextAlign.Right},

                             { field: "Freight", headerText: "Freight", textAlign: ej.TextAlign.Right, width:80,format: "{0:C}"},

                             { field: "ShipCity", headerText: "Ship City",width:80},

                             { field: "ShipName", headerText: "Ship Name" }




For your convenience we have modified the sample and the same can be downloaded from below link.

Sample: Gridwrap.zip

Please let us know if you need any further assistance.

J.Mohammed Farook

HD Hoang Dang November 13, 2014 04:20 PM UTC

Thanks Mohammed. The workaround works for me. 

PK Prasanna Kumar Viswanathan Syncfusion Team November 17, 2014 04:55 AM UTC

Hi Hoang,

Thanks for your update,

Prasanna Kumar N.S.V

Live Chat Icon For mobile
Up arrow icon