从数据库将图像加载到kendo ui网格中 [英] loading the image into the kendo ui grid from the database

查看:112
本文介绍了从数据库将图像加载到kendo ui网格中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的表中有一个名为Image的字段.我正在使用kendo ui grid.我能够加载表中除image字段之外的所有字段.我使用linq查询来获取所有值.
如果我给图像模板像这样:#="< input type = image src =#= Image#"/>#"
它正在显示带有叉号的图像符号.如果我没有提到模板,它将以字节为单位显示值.我想从数据库中加载图像.


任何建议..


I have a field named Image in my table.i am using kendo ui grid.i am able to load all the fields in my table except image field.i used linq query to get all the values.
If i give the image template like:"#=''<input type= image src =''#=Image #''/>''#"
it is displaying an image symbol with cross mark.If i didn''t mention the template it is displaying the value in bytes.i want to load the image from the database.


Any suggestions..

推荐答案

它正在显示带有叉号的图像符号.I
听起来好像定义的图像源无法找到图像.确保提到的位置有图像.使用笨拙的URL或正确的相对URL.
it is displaying an image symbol with cross mark.I
Sounds like the image source defined is was unable to locate the image. Make sure the location mentioned has an image. Use aboslute URL or correct relative URL.


您好

你必须这样写

模板:<输入类型=图片src =#=图片#"/>''

如果不起作用,请在我的邮件ID上发送您的示例代码
ze77riyaz@gmail.com
Hello

you have to write like this

template: ''<input type= image src ="#=Image #"/>''

if not work then send your sample code on my mail id
ze77riyaz@gmail.com


这篇关于从数据库将图像加载到kendo ui网格中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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