在JQGrid中附加图像 [英] Attach Image In JQGrid

查看:76
本文介绍了在JQGrid中附加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在JQGrid上工作.......

我想在特定的栏目中显示图片........


但是我不知道如何在JQGrid中附加图像.....


谁能帮我...或请给我一些链接...

Hi frends i am working on JQGrid.......

I want to show Image in specific coloumn........


But i dont know how to attach image in JQGrid.....


Can anybody help me......or plz send me some links......

推荐答案

嘿,苏哈斯,
1)此代码块可能对您有帮助,
Hey suhas,
1)this block of code may help you,
function jqGridFormatter(cell, options, row) 
{
    return "<a href='Home\ShowImage?imageName=" + cell + ">Image</a>"; 
}


然后,您需要在jqGrid的colModel选项中指定此格式化程序,请参见
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter. [ ^ ]
2)尝试使用谷歌浏览器!


Then you need to specify this formatter in colModel options for jqGrid, see
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter.[^]
2)Try google fro same!!


尝试此链接

我对jqGrid一无所知直到现在.但是看到您的问题后,我在Google中搜索了 jqGrid中的图像列? [
I had no idea about jqGrid till now. But after I saw your question, I searched Google for image in jqgrid[^], and this was the first result - image column in jqGrid?[^].

Easy, isn''t it?!


这篇关于在JQGrid中附加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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