FineUI 官方论坛
标题:
grid的问题,大家请帮忙解决下
[打印本页]
作者:
cir_ui
时间:
2013-4-7 01:46
标题:
grid的问题,大家请帮忙解决下
三个选项,每个选项对应一个grid。gridA,gridB,girdC放在一个panel中,都是隐藏的,条件一显示gridA
条件二显示gridB。但是只有gridA是全屏显示,gridB只显示一条记录的高度。有遇到这种情况的,帮忙看看。
作者:
appletreegd
时间:
2013-4-7 04:28
你要弄个例子出来就好办了,现在啥也没有。。
作者:
cir_ui
时间:
2013-4-7 12:18
改成两个panel,都是默认隐藏的,条件一显示 qc panel,条件二显示 cr panel .但是一个panel全屏,另一个显示的时候只显示一条记录。
<x
ageManager ID="
ageManager1" runat="server" AutoSizePanelID="
anel1" />
<x
anel ID="
anel1" runat="server" ShowBorder="true" ShowHeader="false" Title="
anel"
Layout="Fit">
<Toolbars>
<x:Toolbar ID="Toolbar1" runat="server">
<Items>
<x:ToolbarSeparator ID="ToolbarSeparator3" runat="server" />
<x
abel ID="Label1" runat="server" Label="Label" Text="请选择:">
</x
abel>
<x
ropDownList ID="DropDownList1" runat="server" DataTextField="Name" DataValueField="Id"
AutoPostBack="true" Width="145px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</x
ropDownList>
<x
ropDownList ID="DropDownList2" runat="server" DataValueField="Id" DataTextField="Name"
AutoPostBack="true" Width="145px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
</x
ropDownList>
<x
ropDownList ID="DropDownList3" runat="server" DataValueField="Id" DataTextField="Name"
AutoPostBack="true" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged"
Width="105px">
</x
ropDownList>
<x
ropDownList ID="DropDownList4" runat="server" DataValueField="Id" DataTextField="Name"
Width="105px">
</x
ropDownList>
<x:ToolbarSeparator ID="ToolbarSeparator4" runat="server" />
<x
abel ID="Label2" runat="server" Label="Label" Text="请选择日期:" />
<x
atePicker ID="DatePicker1" runat="server" Required="True" RequiredMessage="请选择正确的日期"
DateFormatString="yyyy-MM">
</x
atePicker>
<x:DatePicker ID="DatePicker2" runat="server" Required="True" RequiredMessage="请选择正确的日期"
Hidden="true">
</x:DatePicker>
<x:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
<x:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="r1_checkchanged"
Width="160" AutoPostBack="True">
<x:RadioItem Text="请车" Value="0" Selected="true" />
<x:RadioItem Text="承认" Value="1" />
<x:RadioItem Text="完成" Value="2" />
</x:RadioButtonList>
<x:ToolbarSeparator ID="ToolbarSeparator2" runat="server" />
<x:Button ID="btnFind" runat="server" Text="查询" Icon="Find" OnClick="btnFind_Click">
</x:Button>
<x:ToolbarSeparator runat="server" />
<x:Button ID="btnSave" runat="server" Text="保存" Icon="SystemSave">
</x:Button>
<x:ToolbarSeparator runat="server" />
</Items>
</x:Toolbar>
</Toolbars>
<Items>
<x
anel Hidden="true" runat="server" ID="qc" Layout="Fit">
<Items>
<x:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="false" EnableRowNumber="true"
AutoHeight="true" ShowBorder="false" ShowHeader="false" Title="Grid" DataKeyNames="id"
PageSize="25" EnableRowNumberPaging="True" EnableAlternateRowColor="true" AllowPaging="false"
RowNumberWidth="39px">
<Columns>
<x:BoundField DataField="jhh" HeaderText="计划号" TextAlign="Center" />
<x:BoundField DataField="fz" HeaderText="发站" TextAlign="Center" />
<x:BoundField DataField="dz" HeaderText="到站" TextAlign="Center" />
<x:BoundField DataField="jb" HeaderText="局别" TextAlign="Center" />
<x:BoundField DataField="shdw" HeaderText="收货单位" TextAlign="Center" Width="190" />
<x:BoundField DataField="pm" HeaderText="品名" TextAlign="Center" />
<x:BoundField DataField="cz" HeaderText="车种" TextAlign="Center" />
<x:BoundField DataField="cs" HeaderText="车数" TextAlign="Center" />
<x:BoundField DataField="pl" HeaderText="品类" TextAlign="Center" />
</Columns>
</x:Grid>
</Items>
</x
anel>
<x
anel Hidden="true" runat="server" ID="cr" Layout="Fit">
<Items>
<x:Grid ID="Grid2" runat="server" EnableCheckBoxSelect="false" EnableRowNumber="true"
AutoHeight="true" ShowBorder="false" ShowHeader="false" Title="Grid" DataKeyNames="id"
PageSize="25" EnableRowNumberPaging="True" EnableAlternateRowColor="true" AllowPaging="false"
RowNumberWidth="39px">
<Columns>
<x:BoundField DataField="jhh" HeaderText="计划号" TextAlign="Center" />
<x:BoundField DataField="fz" HeaderText="发站" TextAlign="Center" />
<x:BoundField DataField="dz" HeaderText="到站" TextAlign="Center" />
<x:BoundField DataField="jb" HeaderText="局别" TextAlign="Center" />
<x:BoundField DataField="pm" HeaderText="品名" TextAlign="Center" />
<x:BoundField DataField="cz" HeaderText="车种" TextAlign="Center" />
<x:BoundField DataField="cs" HeaderText="车数" TextAlign="Center" />
<x:BoundField DataField="pl" HeaderText="品类" TextAlign="Center" />
</Columns>
</x:Grid>
</Items>
</x
anel>
</Items>
</x
anel>
作者:
cir_ui
时间:
2013-4-7 12:19
改成两个panel,都是默认隐藏的,条件一显示 qc panel,条件二显示 cr panel .但是一个panel全屏,另一个显示的时候只显示一条记录。
<x
ageManager ID="
ageManager1" runat="server" AutoSizePanelID="
anel1" />
<x
anel ID="
anel1" runat="server" ShowBorder="true" ShowHeader="false" Title="
anel"
Layout="Fit">
<Toolbars>
<x:Toolbar ID="Toolbar1" runat="server">
<Items>
<x:ToolbarSeparator ID="ToolbarSeparator3" runat="server" />
<x
abel ID="Label1" runat="server" Label="Label" Text="请选择:">
</x
abel>
<x
ropDownList ID="DropDownList1" runat="server" DataTextField="Name" DataValueField="Id"
AutoPostBack="true" Width="145px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</x
ropDownList>
<x
ropDownList ID="DropDownList2" runat="server" DataValueField="Id" DataTextField="Name"
AutoPostBack="true" Width="145px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
</x
ropDownList>
<x
ropDownList ID="DropDownList3" runat="server" DataValueField="Id" DataTextField="Name"
AutoPostBack="true" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged"
Width="105px">
</x
ropDownList>
<x
ropDownList ID="DropDownList4" runat="server" DataValueField="Id" DataTextField="Name"
Width="105px">
</x
ropDownList>
<x:ToolbarSeparator ID="ToolbarSeparator4" runat="server" />
<x
abel ID="Label2" runat="server" Label="Label" Text="请选择日期:" />
<x
atePicker ID="DatePicker1" runat="server" Required="True" RequiredMessage="请选择正确的日期"
DateFormatString="yyyy-MM">
</x
atePicker>
<x:DatePicker ID="DatePicker2" runat="server" Required="True" RequiredMessage="请选择正确的日期"
Hidden="true">
</x:DatePicker>
<x:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
<x:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="r1_checkchanged"
Width="160" AutoPostBack="True">
<x:RadioItem Text="请车" Value="0" Selected="true" />
<x:RadioItem Text="承认" Value="1" />
<x:RadioItem Text="完成" Value="2" />
</x:RadioButtonList>
<x:ToolbarSeparator ID="ToolbarSeparator2" runat="server" />
<x:Button ID="btnFind" runat="server" Text="查询" Icon="Find" OnClick="btnFind_Click">
</x:Button>
<x:ToolbarSeparator runat="server" />
<x:Button ID="btnSave" runat="server" Text="保存" Icon="SystemSave">
</x:Button>
<x:ToolbarSeparator runat="server" />
</Items>
</x:Toolbar>
</Toolbars>
<Items>
<x
anel Hidden="true" runat="server" ID="qc" Layout="Fit">
<Items>
<x:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="false" EnableRowNumber="true"
AutoHeight="true" ShowBorder="false" ShowHeader="false" Title="Grid" DataKeyNames="id"
PageSize="25" EnableRowNumberPaging="True" EnableAlternateRowColor="true" AllowPaging="false"
RowNumberWidth="39px">
<Columns>
<x:BoundField DataField="jhh" HeaderText="计划号" TextAlign="Center" />
<x:BoundField DataField="fz" HeaderText="发站" TextAlign="Center" />
<x:BoundField DataField="dz" HeaderText="到站" TextAlign="Center" />
<x:BoundField DataField="jb" HeaderText="局别" TextAlign="Center" />
<x:BoundField DataField="shdw" HeaderText="收货单位" TextAlign="Center" Width="190" />
<x:BoundField DataField="pm" HeaderText="品名" TextAlign="Center" />
<x:BoundField DataField="cz" HeaderText="车种" TextAlign="Center" />
<x:BoundField DataField="cs" HeaderText="车数" TextAlign="Center" />
<x:BoundField DataField="pl" HeaderText="品类" TextAlign="Center" />
</Columns>
</x:Grid>
</Items>
</x
anel>
<x
anel Hidden="true" runat="server" ID="cr" Layout="Fit">
<Items>
<x:Grid ID="Grid2" runat="server" EnableCheckBoxSelect="false" EnableRowNumber="true"
AutoHeight="true" ShowBorder="false" ShowHeader="false" Title="Grid" DataKeyNames="id"
PageSize="25" EnableRowNumberPaging="True" EnableAlternateRowColor="true" AllowPaging="false"
RowNumberWidth="39px">
<Columns>
<x:BoundField DataField="jhh" HeaderText="计划号" TextAlign="Center" />
<x:BoundField DataField="fz" HeaderText="发站" TextAlign="Center" />
<x:BoundField DataField="dz" HeaderText="到站" TextAlign="Center" />
<x:BoundField DataField="jb" HeaderText="局别" TextAlign="Center" />
<x:BoundField DataField="pm" HeaderText="品名" TextAlign="Center" />
<x:BoundField DataField="cz" HeaderText="车种" TextAlign="Center" />
<x:BoundField DataField="cs" HeaderText="车数" TextAlign="Center" />
<x:BoundField DataField="pl" HeaderText="品类" TextAlign="Center" />
</Columns>
</x:Grid>
</Items>
</x
anel>
</Items>
</x
anel>
作者:
cir_ui
时间:
2013-4-7 12:49
问题已解决。我把最外层的panel设置成 Layout="row",里层的panel 的 RowHeight="100%" 就可以了。谢谢
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4