jqgrid 列宽
我正在使用 jqgrid 以 10 列显示数据。数据库中有一列PillName,我们可以将PillName存储为100个字符。在jqgrid中显示时,其显示如下图所示:
如何以正确的方式显示值这样 jqgrid 就不会扭曲。理想情况下,它应该在一些字符之后中断。
或者它可以显示大约 10 个字符,然后......(点)?
请帮忙?
谢谢。
I am using jqgrid to display the data in 10 columns. There is one column PillName, we can store PillName as 100 caharacters in Database. While displaying in jqgrid, its displaying like in the following image:
How to show the value in a proper way so that jqgrid dont get distorted. Ideally, it should break after some characters.
or It can show some 10 characters and then after that ........(dots)?
Kindly Help?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 MVC 和 jqGrid 之间存在 CSS 冲突。人们会发现 jqGrid 寻呼机的输入字段中已经存在问题。例如,这个问题可以通过额外的 CSS 定义来解决。
您可能会遇到
或
元素的问题。您可以使用 Chrome 或 Internet Explorer 的开发人员工具或 Firebug 检查网格单元的样式。您还可以进行简单的测试并注释整个 MVC CSS 或大部分 CSS。我想在删除不需要的 CSS 声明或在项目的 CSS 中包含寻呼机等修复后,网格看起来会正常。
I suppose that you have CSS conflicts between MVC and jqGrid. One sees problems already in the input field of the jqGrid pager. The problem for example can be fixed with additional CSS definition
The close problem you have probably with
<td>
or<tr>
elements. You can examine the styles of the grid cell with Developer Tools of Internet Explorer of Chrome oder with Firebug. You can also make a simple test and comment the whole MVC CSS or a large parts of the CSS. I suppose that the grid will looks OK after removing unneeded CSS declaration or including the fix like with the pager in the CSS of your projects.