Topic: Datatable Column Truncating Data

Colin S free asked 3 years ago


One column of my datatable has a long string in it. I need the entire string to be shown to the user, but the datatable is truncating the string after a certain number of characters and ending it with ...

Is there a way to make the column width expand to fit the string, wrap the string onto multiple lines, or at least add a tooltip that gives the entire string?

Thank you!


Grzegorz Bujański staff answered 3 years ago


Try to add this in your styles:

.datatable table td, .datatable table th {
    text-overflow: unset;
    max-width: unset;
}

Colin S free commented 3 years ago

Thanks, that seems to do the trick!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags