FineUI 官方论坛
标题:
在grid的按钮(LinkButtonField)提示(ToolTip)中显示图片错误
[打印本页]
作者:
newwangz
时间:
2019-6-4 17:11
标题:
在grid的按钮(LinkButtonField)提示(ToolTip)中显示图片错误
错误显示:[attach]11962[/attach],前端代码:<Columns> <x:BoundField DataField="Car" SortField="Car" Width="150px" HeaderText="车牌号" />
<x:BoundField DataField="CardType" SortField="CardType" Width="120px" HeaderText="车辆卡类" />
<x:BoundField DataField="ReceiveTime" SortField="ReceiveTime" Width="250px" HeaderText="入场时间" />
<x:BoundField DataField="UserNameIn" SortField="UserNameIn" Width="150px" HeaderText="入场操作员" />
<x:BoundField DataField="Berths" SortField="Berths" Width="100px" HeaderText="入场车位" />
<x:BoundField DataField="AreaName" SortField="AreaName" Width="250px" HeaderText="所属路段" />
<x:BoundField DataField="
arkName" SortField="
arkName" Width="250px" HeaderText="停车场" />
<x:BoundField DataField="
ersonName" SortField="
ersonName" Width="250px" HeaderText="人员姓名" />
<x
inkButtonField HeaderText="照片" Width="80px" ColumnID="admin" CommandName="Action1" Text="按钮 1" >
</x
inkButtonField>
<x:WindowField Icon="Information" HeaderText="照片" ColumnID="admin1" ExpandUnusedSpace="true" Title="查看详细信息" WindowID="Window1"
DataIFrameUrlFields="Id" DataIFrameUrlFormatString="~/ParkSystem/photo_view.aspx?id={0}"/>
</Columns>
后台代码:
protected void Grid1_PreRowDataBound(object sender, GridPreRowEventArgs e)
{
LinkButtonField lbfAction1 = Grid1.FindColumn("admin") as LinkButtonField;
lbfAction1.ToolTip= "<div style=\"background-image: url(../icon/cheliang.jpg); height: 125px; width: 125px;\"></div><span> 车辆图片</span>";
}
作者:
sanshi
时间:
2019-6-5 11:50
右键,查看页面源代码,看下是否哪个标签没闭合
作者:
和平年代
时间:
2020-2-12 13:32
问题是否解决,我也遇到同样问题?
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4