Kendo-Grid Truncate string with no white-space

Kendo-Grid Truncate string with no white-space

我正在使用 Kendo-Grid 进行过滤,一切正常,但如果没有白色 space,我的手机就会出现问题。 如图所示:

字符串是“https://www.linkedi/Testing”,但它只显示到“测试”。

对于带有白色 space 的字符串不会出现此问题,例如:

我是客户端编程的新手,非常感谢大家。

默认行为应该是这样的:

我不确定为什么你的情况不是这样,可能是 kendo 的旧版本。

要实现上述行为,请添加 css:

/*Overides kendo default*/
.k-grid td {
      text-overflow: ellipsis;
}

示例:ellipsis

要实现文本换行添加css:

/*Overides kendo default*/
.k-grid td {
      word-break: break-all;
}

示例:brake-all