Alexandre
Alexandre

Reputation: 13308

How do I position a GridPanel inside an Ext.NET window?

I can't seem to set the position of an Ext.NET GridPanel inside an Ext.NET window and I wonder why?

<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.

Upvotes: 3

Views: 730

Answers (2)

retype
retype

Reputation: 2385

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>.

Hope this helps.

Upvotes: 2

Bhargav Mistri
Bhargav Mistri

Reputation: 944

I think Layout="Fit" gives you issue, check that..

Upvotes: 1

Related Questions