我有一个Jqgrid,并在其中添加了一个图形列,但图形没有显示,并且我不知道如何在Jqgrid中获取行号。我想要每一行中的图形,根据我从服务器端获取的数据行的数据,但不知道如何使用Jqgrid。你能帮我解决一下我的问题吗?谢谢..。
发布于 2011-03-11 08:24:36
使用Custom Formatter。在colModel中添加formatter: myFormatter
然后定义函数
function myFormatter(cellvalue, options, rowObject)
{ return "The Value You Want to Display In The Cell"; }格式化程序函数返回的值将显示在单元格中
formatted
的规则提供
https://stackoverflow.com/questions/5151064
复制相似问题