FineUI 官方论坛
标题:
求助 Grid 不能出现滚动条问题 - BUG报告及寻求解决办法
[打印本页]
作者:
jinwmmail
时间:
2012-11-20 08:25
标题:
求助 Grid 不能出现滚动条问题 - BUG报告及寻求解决办法
布局代码片段如下:
<ext
anel ID="
anel11" runat="server" Layout="Fit" RowHeight="100%" EnableBackgroundColor="false"
ShowBorder="false" ShowHeader="false">
<Items>
<ext:TabStrip ID="tsX" runat="server" ShowBorder="false">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="借出模具列表" Layout="Fit" EnableBackgroundColor="true">
<Toolbars>
<ext:Toolbar ID="Toolbar2" runat="server">
</ext:Toolbar>
</Toolbars>
<Items>
<ext:Grid ID="Grid1" ShowBorder="false" ShowHeader="false"
AutoHeight="true" runat="server" EnableMultiSelect="false"
DataKeyNames="LendID"
EnableRowNumber="True" EnableTextSelection="true">
<Columns>
<ext:BoundField Width="100px" DataField="LendID" HeaderText="借出单号" Hidden="true" />
<ext:BoundField Width="35px" DataField="Seq" HeaderText="序号" />
<ext:BoundField Width="100px" DataField="ItemCode" HeaderText="模具编号" />
<ext:BoundField Width="120px" DataField="ItemName" HeaderText="模具名称" />
<ext:BoundField Width="45px" DataField="UnitName" HeaderText="单位" TextAlign="Center" />
<ext:BoundField Width="75px" DataField="Qty" HeaderText="借出数量" DataFormatString="{0:0.####}" TextAlign="Right" />
<ext:BoundField Width="75px" DataField="QtyRtn" HeaderText="已还数量" DataFormatString="{0:0.####}" TextAlign="Right" />
<ext:BoundField Width="300px" DataField="Remark" HeaderText="备注" />
</Columns>
</ext:Grid>
</Items>
</ext:Tab>
</Tabs>
</ext:TabStrip>
</Items>
</ext
anel>
使用 Window 控件弹出来此页面后,界面如下:
[attach]1287[/attach]
上图中下面的Grid没有滚动条,还有内容没显示出来,但是如果使用鼠标调整一下页面尺寸,滚动条就出来了,见下面:
[attach]1288[/attach]
[attach]1289[/attach]
请问各位老师,能否有一个临时办法通过js 解决这个问题?当然希望作者们记下这个BUG, 在下一个版本中修复,让我们的FineUI更完美。谢谢,盼答案!
作者:
sanshi
时间:
2012-11-20 09:05
把整个页面代码(ASPX)上传一下....
作者:
jinwmmail
时间:
2012-11-20 11:56
谢谢三石哥帮我看这个问题,整个页面代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sam_MoldLend.aspx.cs"
Inherits="RDF.Web.Admin.Sam.Sam_MoldLend" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
</script>
</head>
<body>
<form id="form1" runat="server">
<ext
ageManager ID="
ageManager1" AutoSizePanelID="
anel1" runat="server" />
<ext
anel ID="
anel1" runat="server" BodyPadding="0px" EnableBackgroundColor="false"
ShowBorder="false" ShowHeader="false" Title="
anel" Layout="Row">
<Items>
<ext:Toolbar ID="Toolbar1" runat="server">
</ext:Toolbar>
<ext:Form ID="FormEdit" ShowBorder="False" BodyPadding="3px" EnableBackgroundColor="false"
ShowHeader="False" runat="server" LabelWidth="60px">
<Rows>
<ext:FormRow>
<Items>
<ext:TextBox ID="txtLendNo" runat="server" Text="" Width="100px" Label="借出单号" NextFocusControl="txtSeq"
EmptyText="为空则自动编号" FocusOnPageLoad="true">
</ext:TextBox>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext
atePicker ID="txtLendDate" runat="server" Text="" Label="制单日期" NextFocusControl="txtRtnDate"
Required="true">
</ext
atePicker>
<ext
atePicker ID="txtRtnDate" runat="server" Text="" Label="预计返还" NextFocusControl="txtRemark">
</ext
atePicker>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext
ropDownList ID="ddlLendBy" runat="server" Label="交接方式" AutoPostBack="true">
</ext
ropDownList>
<ext:TextBox ID="txtEmployeeName" runat="server" Label="经手人">
</ext:TextBox>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext:TriggerBox ID="txtCustomerCode" runat="server" EnablePostBack="false" Width="140px"
TriggerIcon="Search" Label="客户编号">
</ext:TriggerBox>
<ext:TextBox ID="txtCustomerName" runat="server" Text="" Label="客户名称" Enabled="false">
</ext:TextBox>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext:TriggerBox ID="txtLogisticsCode" runat="server" EnablePostBack="false" Width="140px"
TriggerIcon="Search" Label="物流公司">
</ext:TriggerBox>
<ext:TextBox ID="txtLogisticsName" runat="server" Text="" Label="物流名称" Enabled="false">
</ext:TextBox>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext:NumberBox ID="txtLogisticsFee" runat="server" Width="100px" Label="物流运费" NoNegative="true"
Required="true">
</ext:NumberBox>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext:CheckBox ID="ckbIsToPay" runat="server" Label="是否到付">
</ext:CheckBox>
<ext
ropDownList ID="ddlRtnStatus" runat="server" Label="归还状态">
</ext
ropDownList>
</Items>
</ext:FormRow>
<ext:FormRow>
<Items>
<ext:TextArea ID="txtRemark" runat="server" Text="" Height="45px" Label="备注" NextFocusControl="txtLendNo">
</ext:TextArea>
</Items>
</ext:FormRow>
</Rows>
</ext:Form>
<ext
anel ID="
anel11" runat="server" Layout="Fit" RowHeight="100%" EnableBackgroundColor="false"
ShowBorder="false" ShowHeader="false">
<Items>
<ext:TabStrip ID="tsX" runat="server" ShowBorder="false">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="借出模具列表" Layout="Fit" EnableBackgroundColor="true">
<Toolbars>
<ext:Toolbar ID="Toolbar2" runat="server">
</ext:Toolbar>
</Toolbars>
<Items>
<ext:Grid ID="Grid1" ShowBorder="false" ShowHeader="false"
AutoHeight="true" runat="server" EnableMultiSelect="false"
DataKeyNames="LendID"
EnableRowNumber="True" EnableTextSelection="true">
<Columns>
<ext:BoundField Width="100px" DataField="LendID" HeaderText="借出单号" Hidden="true" />
<ext:BoundField Width="35px" DataField="Seq" HeaderText="序号" />
<ext:BoundField Width="100px" DataField="ItemCode" HeaderText="模具编号" />
<ext:BoundField Width="120px" DataField="ItemName" HeaderText="模具名称" />
<ext:BoundField Width="45px" DataField="UnitName" HeaderText="单位" TextAlign="Center" />
<ext:BoundField Width="75px" DataField="Qty" HeaderText="借出数量" DataFormatString="{0:0.####}" TextAlign="Right" />
<ext:BoundField Width="75px" DataField="QtyRtn" HeaderText="已还数量" DataFormatString="{0:0.####}" TextAlign="Right" />
<ext:BoundField Width="300px" DataField="Remark" HeaderText="备注" />
</Columns>
</ext:Grid>
</Items>
</ext:Tab>
</Tabs>
</ext:TabStrip>
</Items>
</ext
anel>
</Items>
</ext
anel>
<ext:Window ID="Window1" Title="选择" Popup="false" EnableIFrame="true" runat="server"
EnableMaximize="true" EnableResize="true" Target="
arent" IsModal="true" Width="350px"
Height="450px" WindowPosition="RightTop">
</ext:Window>
<ext:Window ID="Window2" Title="选择" Popup="false" EnableIFrame="true" runat="server" OnClose="Window2_Close"
EnableMaximize="true" EnableResize="true" Target="
arent" IsModal="true" Width="450px"
Height="450px" WindowPosition="RightTop">
</ext:Window>
</form>
</body>
</html>
作者:
jinwmmail
时间:
2012-11-21 11:45
三石哥,有空帮看看呗
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4