Hi Robert,
Thanks for contacting Syncfusion Support.
By default, wrapping will not be applied to the Grid. Henceforth, the Grid content will trim the leading white-spaces. To overcome this, we must customize the Grid cells by white-space CSS property. We have included the cssClass property to add this customization as shown in the following code example.
<style> .e-grid.noWrap .e-rowcell { white-space: pre-wrap !important; } </style> <div id="Grid"></div> <script type="text/javascript"> $(function () { $("#Grid").ejGrid({ dataSource: window.gridData, allowPaging: true, cssClass: "noWrap", editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true }, .. . . . . }); }); </script> |
Refer to the following API References.
We have prepared a sample demo.
Regards,
Seeni Sakthi Kumar S.