Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Wrapping text in igxColumn

Wrapping text in igxColumn

New Discussion
Michel LAPLANE
Michel LAPLANE asked on Sep 26, 2018 8:52 AM

Hi,

I am using an igxGrid and I would like to make a cell wrapping text content.

The text has no space in it.

Here is my column declaration

<igx-column header=”Url” field=”url” width=”150px” [filterable]=”true” [resizable]=”true” >
<ng-template igxCell let-cell=”cell” >
<span>{{ cell.value }}</span>
</ng-template>
</igx-column>

How can i Do

Thanks

Sign In to post a reply

Replies

  • 0
    Desislava Dincheva
    Desislava Dincheva answered on Sep 26, 2018 6:14 AM

    Hello,
    Thank you for contacting Infragistics Support.

    If you want to add custom style to the Igx Cell, according to the given cell template I recommend you to do it in the following way:

    .igx-grid__td span { }

    and add the whatever custom style you want. For example if you want the cell content not to overflow the cell borders you can add:

    @import "~igniteui-angular/lib/core/styles/base/utilities/index";

    .igx-grid__td span { @include ellipsis(); } in your style.scss file

    or if you are using plain css in your style.css :

    .igx-grid__td span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

    If you have any further questions or this is not the specific behavior that you want to achieve, please contact us and describe in more details the behavior that you expect to get.

    • 0
      Michel LAPLANE
      Michel LAPLANE answered on Sep 26, 2018 8:52 AM

      Many thanks Desislava. That solves my problem adding .igx-grid_td spane in my style.css file

      /* You can add global styles to this file, and also import other style files */
      @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
      .igx-grid__td span {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Michel LAPLANE
Favorites
0
Replies
2
Created On
Sep 26, 2018
Last Post
7 years, 5 months ago

Suggested Discussions

Created by

Created on

Sep 26, 2018 8:52 AM

Last activity on

Feb 11, 2026 9:24 PM