在kendo UI Grid中自定义列的文本 [英] customize text of a column in kendo UI Grid

查看:324
本文介绍了在kendo UI Grid中自定义列的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个剑道网格,文字列宽度为30.

文本列的数据来自数据库。

如果从数据库中获取的数据超过宽度,则将其包装到下一行,即假设文本代码项目超出宽度 - 30则显示为< br $>
代码

项目

但是

现在我想把它显示为代码......在同一行中



我在谷歌试过但我无法得到它。

你可以帮我找到解决方案。

提前致谢

解决方案

添加此css





< pre lang =css>。 k-grid td {
white-space normal;
}


Hi,

I have a kendo grid, with text column with width - 30.
data of text column is fetched from database.
If the data which is fetched from database is more than the width then it is wrapped to next line i.e. suppose if the text - code project which is exceeding width - 30 then it is shown as
code
project
but
Now I want to show it as code... in the same line

I have tried in google but I couldn't get it.
can you help me getting a solution.
Thanks in advance

解决方案

add this css


.k-grid td {
        white-space:normal;
}


这篇关于在kendo UI Grid中自定义列的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆