I can't seem to set the position of an Ext.NET GridPanel inside an Ext.NET window and I wonder why?
我似乎无法在Ext.NET窗口中设置Ext.NET GridPanel的位置,我想知道为什么?
<ext:Window ID="Window1" runat="server" StripeRows="true" Width="900" Height="700"
Closable="false" Collapsible="true" Maximizable="true" Layout="Fit"
X="0" Y="0"
CenterOnLoad="false">
<Items>
<ext:GridPanel ID="customersGrid" runat="server" />
//.....................
When I change X and Y it doesn't take effect.
当我改变X和Y时,它不会起作用。
2 个解决方案
#1
2
If you want the GridPanel to be absolutely positioned somewhere inside the Window, you'll have to set Layout="Absolute" on the <ext:Window>
, and set the .X and .Y properties of the <ext:GridPanel>
.
如果您希望GridPanel绝对位于窗口内的某个位置,则必须在
Hope this helps.
希望这个有帮助。
#2
1
I think Layout="Fit" gives you issue, check that..
我认为布局="Fit"会给你问题,检查一下。
#1
2
If you want the GridPanel to be absolutely positioned somewhere inside the Window, you'll have to set Layout="Absolute" on the <ext:Window>
, and set the .X and .Y properties of the <ext:GridPanel>
.
如果您希望GridPanel绝对位于窗口内的某个位置,则必须在
Hope this helps.
希望这个有帮助。
#2
1
I think Layout="Fit" gives you issue, check that..
我认为布局="Fit"会给你问题,检查一下。