FineUI 官方论坛
标题:
Grid不能自适应浏览器大小?如何解决,求助。
[打印本页]
作者:
xtb_sp
时间:
2014-9-4 23:58
标题:
Grid不能自适应浏览器大小?如何解决,求助。
代码如下,当我改变浏览器大小的时候,里面的grid大小不会改变。不知道需要设置什么属性?
<f
ageManager ID="
ageManager1" runat="server" />
<f
anel ID="
anel1" CssClass="formitem" ShowBorder="true" ShowHeader="false" Title="待审核加盟商"
runat="server">
<Items>
<f:Form ID="Form2" ShowHeader="false" ShowBorder="false" MessageTarget="Qtip" BodyPadding="5px" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtUserName" ShowLabel="true" Label="公司名称" MaxLength="50" CssClass="marginr" runat="server">
</f:TextBox>
<f:TextBox ID="txtContactName" ShowLabel="true" Label="联系人" MaxLength="50" CssClass="marginr" runat="server">
</f:TextBox>
<f:TextBox ID="txtPhone" ShowLabel="true" Label="公司电话" MaxLength="50" CssClass="marginr" runat="server">
</f:TextBox>
<f:Button ID="btnSearch" Text="检索" CssStyle="width:80px;" runat="server" />
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f
anel ID="
anel2" ShowHeader="false" ShowBorder="false"
runat="server">
<Items>
<f:Grid ID="Grid1" PageSize="10" ShowBorder="false" ShowHeader="false" CssStyle="border-top:1px solid #157fcc;"
AllowPaging="true" runat="server" EnableCheckBoxSelect="false" ForceFit="true"
DataKeyNames="AgentID" IsDatabasePaging="true">
<Columns>
<f:BoundField DataField="AgentName" HeaderText="公司名称" />
<f:BoundField DataField="BossName" HeaderText="法人姓名" />
<f:BoundField DataField="BossContact" HeaderText="法人联系方式" />
<f:BoundField DataField="CooperationType" HeaderText="合作类型" />
<f:BoundField DataField="CautionMoney" HeaderText="保证金" DataFormatString="¥{0:F}" />
<f:TemplateField HeaderText=" 操 作 " Width="60">
<ItemTemplate>
<f:HiddenField Text='<%#Eval("AgentID") %>' ID="hdfAgentID" runat="server"></f:HiddenField>
<asp
inkButton ID="lbkDoProcess" runat="server">处 理</asp
inkButton>
<asp
inkButton ID="lbkDetail" runat="server">详 情</asp
inkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
</f:Grid>
</Items>
</f
anel>
</Items>
</f
anel>
作者:
lemonxlm
时间:
2014-9-5 09:30
<f
ageManager ID="
ageManager1" runat="server" AutoSizePanelID="
anel1"/>
记得在PageManager 中设置AutoSizePanelID=“要自适应的空间Id”
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4