<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
...
columns: [
...
{ field: "ShipCity", headerText: "ShipCity", width: 20, clipMode: ej.Grid.ClipMode.Ellipsis, textAlign: ej.TextAlign.Right },
]
});
});
</script> |
Hi Luis,
Thanks for contacting Syncfusion support.
We have analyzed your query and we can achieve your requirement using clipMode property of columns in grid.Please refer the below code example.
<script type="text/javascript">$(function () {$("#Grid").ejGrid({...columns: [...{ field: "ShipCity", headerText: "ShipCity", width: 20, clipMode: ej.Grid.ClipMode.Ellipsis, textAlign: ej.TextAlign.Right },]});});</script>In the above code example we have cutoff the particular column using clipMode property of columns in grid by setting as ellipsis.
We have also prepared a sample that can be downloaded from the below link.
Also please refer the documentation and API link regarding this.
Documentation link: https://help.syncfusion.com/js/grid/cell#clipmode
Note: If the cell value contains a long text that is not fit into the grid column cell, the clipMode property is used. Using this the cell value will be displayed with ellipsis or with clipped content when the text overflows inside a column cell.If you not satisfy with clipMode property you can use allowTextWrap property in grid which helps to wrap the text when the cell content overflows.Refer the documentation link.UG documentation link: https://help.syncfusion.com/js/grid/cell#auto-wrapPlease let us know if you need assistance.
Regards,Manisankar Durai.
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
...
columns: [
...
{ field: "ShipCity", headerText: "ShipCity", width: 20, tooltip: "{{:value}}” , clipMode: ej.Grid.ClipMode.EllipsisWithTooltip,textAlign: ej.TextAlign.Right },
]
});
});
</script>
|