FineUI 官方论坛
标题:
请教:Tabs下Grid 如何自动高度?
[打印本页]
作者:
小龙GG
时间:
2016-10-25 21:53
标题:
请教:Tabs下Grid 如何自动高度?
现在Grid自动高度无效。
<%-- 左侧设备列表 Begin--%>
<f:Region ID="RegionLeft" Split="true" Width="260px" BoxFlex="1"
Margin="0 0 0 0" ShowHeader="true" ShowBorder="true" Title="设备" Icon="Camera"
EnableCollapse="true" Layout="Fit" Collapsed="false" Position="Left" runat="server">
<Items>
<%-- <f:Tree BodyStyle="background:url(images/bg/bg-body.png) repeat;" runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"--%>
<%-- ID="treeMenu" Title="查询结果" AutoScroll="true">--%>
<%-- </f:Tree>--%>
<f:Panel ID="Panel8" ShowBorder="False" ShowHeader="False"
Layout="VBox" runat="server">
<Items>
<f:TabStrip ID="TabStrip1" EnableTabCloseMenu="true" ShowBorder="false" runat="server">
<Tabs>
<f:Tab ID="Tab4" Title="树形列表" runat="server" AutoScroll="True">
<Items>
<f:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
ID="treeMenu" Title="查询结果" AutoScroll="true">
</f:Tree>
</Items>
</f:Tab>
<f:Tab ID="Tab3" Title="下拉列表" runat="server">
<Items>
<f:DropDownList ID="ddlSheng" Width="230px" Margin="10 10 10 10" EmptyText="选择地区" ShowRedStar="true" CompareType="String"
CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择地区" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="ddlSheng_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="ddlShi" EmptyText="选择镇" Width="230px" Margin="10 10 10 10" ShowRedStar="true" CompareType="String"
CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择镇" runat="server" Enabled="false"
AutoPostBack="true" OnSelectedIndexChanged="ddlShi_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="ddlXian" EmptyText="选择工厂" Width="230px" Margin="10 10 10 10" CompareType="String" CompareValue="-1"
CompareOperator="NotEqual" CompareMessage="请选择工厂" runat="server" Enabled="false">
</f:DropDownList>
<f:Grid ID="Grid_tree" BoxFlex="1" EnableHeaderMenu="False" MinHeight="150px" EmptyText="没有数据" EnableColumnResize="False" EnableColumnLines="True" Margin="2 0 0 5" Width="250px" DataKeyNames="Id" ShowHeader="False" runat="server" Title="设备列表">
<Columns>
<f:BoundField DataField="Name" ExpandUnusedSpace="True" HeaderText="设备名称"/>
<f:BoundField DataField="state" Width="50px" HeaderText="状态"/>
<f:BoundField DataField="jl" Width="78px" HeaderText="剂量(μSv)"/>
</Columns>
</f:Grid>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
</Items>
</f:Panel>
</Items>
</f:Region>
<%-- 左侧设备列表 End--%>
复制代码
作者:
zy32002
时间:
2016-10-26 09:00
下拉框用toolbar装载,剩下的grid用tab的fit。
作者:
Neal.六道
时间:
2016-10-26 09:45
你先了解下fineui的几种布局,然后结果他们的优势使用,layout='fit' 肯定能行的
作者:
Neal.六道
时间:
2016-10-26 09:45
你先了解下fineui的几种布局,然后结果他们的优势使用,layout='fit' 肯定能行的
作者:
小龙GG
时间:
2016-10-26 11:12
谢谢各位,搞定了。
[attach]9341[/attach]
<f:Region ID="RegionLeft" Split="False" Width="260px" BoxFlex="1"
Margin="0 0 0 0" ShowHeader="true" ShowBorder="true" Title="设备" Icon="Camera"
EnableCollapse="true" Layout="Fit" Collapsed="false" Position="Left" runat="server">
<Items>
<%-- <f:Tree BodyStyle="background:url(images/bg/bg-body.png) repeat;" runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"--%>
<%-- ID="treeMenu" Title="查询结果" AutoScroll="true">--%>
<%-- </f:Tree>--%>
<f:TabStrip ID="TabStrip1" EnableTabCloseMenu="true" ShowBorder="false" runat="server">
<Tabs>
<f:Tab ID="Tab4" Title="树形列表" runat="server" AutoScroll="True">
<Items>
<f:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
ID="treeMenu" Title="查询结果" AutoScroll="true">
</f:Tree>
</Items>
</f:Tab>
<f:Tab ID="Tab3" Title="下拉列表" Layout="VBox" runat="server">
<Items>
<f:Panel ID="Panel8" ShowBorder="False" Height="118px" ShowHeader="False" runat="server">
<Items>
<f:DropDownList ID="ddlSheng" Width="235px" Margin="10 10 10 10" EmptyText="选择地区" ShowRedStar="true" CompareType="String"
CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择地区" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="ddlSheng_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="ddlShi" EmptyText="选择镇" Width="235px" Margin="10 10 10 10" ShowRedStar="true" CompareType="String"
CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择镇" runat="server" Enabled="false"
AutoPostBack="true" OnSelectedIndexChanged="ddlShi_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="ddlXian" EmptyText="选择工厂" Width="235px" Margin="10 10 10 10" CompareType="String" CompareValue="-1"
CompareOperator="NotEqual" CompareMessage="请选择工厂" runat="server" Enabled="false">
</f:DropDownList>
</Items>
</f:Panel>
<f:Panel ID="Panel1" ShowBorder="False" BoxFlex="1" Layout="VBox" MaxWidth="253px" Margin="0 0 10 0" ShowHeader="False" runat="server">
<Items>
<f:Grid ID="Grid_tree" BoxFlex="1" EnableHeaderMenu="False" MinHeight="150px" EmptyText="没有数据" EnableColumnResize="False" EnableColumnLines="True" Margin="2 0 0 5" DataKeyNames="Id" ShowHeader="False" runat="server" Title="设备列表">
<Columns>
<f:BoundField DataField="Name" ExpandUnusedSpace="True" HeaderText="设备名称"/>
<f:BoundField DataField="state" Width="50px" HeaderText="状态"/>
<f:BoundField DataField="jl" Width="78px" HeaderText="剂量(μSv)"/>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
</Items>
</f:Region>
复制代码
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4