Limit number of characters being shown (not entered)

Using gridx, is there a method of limiting the number of characters being shown?

Example usage:

Grid View


The content is wider than a column width set to 150px. The user canl see something like:

Now is the time for all good men to come…

grid.enableMultiline is not being used in the grid view.

Details Screen


The user can then click on a “details” link which opens a new page and the full detail is shown from the selected row. The user will then see the full content:

Now is the time for all good men to come to the aid of their country.

grid.enableMultiline is being used in the details screen.



To limit the number of characters shown (50) in the grid view and add “…” at the end to let the user know there is more content.

Unfortunately dhtmlxGrid hasn’t appropriate method. But you can do that programically:

if (value.length>3) {

If you have a lot of rows in your grid using such code can decrease loading perfomance. In such case better to implement custom eXcell type. Please see more information here … #grid_cexc