gridpanel Autosize Columns Automatic

  1. #1

    gridpanel Autosize Columns Automatic

    Hello Guys


    I'm starting to work with this components, they are of huge help, but for my inexperience with this components, i'm not getting a simple thing like is make the columns auto width, the case is the follow:

    In the main page i create a window

    Dim ofertaDeVenta = New Window()
            ofertaDeVenta.ID = "OfertaDeVenta"
            ofertaDeVenta.Title = "Oferta de Venta"
            ofertaDeVenta.Width = Unit.Pixel(833)
            ofertaDeVenta.Height = Unit.Pixel(630)
    
            ofertaDeVenta.Modal = True
            ofertaDeVenta.Collapsible = False
            ofertaDeVenta.Resizable = True
            ofertaDeVenta.Maximizable = True
            ofertaDeVenta.AnimCollapse=False
            ofertaDeVenta.Layout="Fit"
            ofertaDeVenta.ConstrainHeader=False
            ofertaDeVenta.AutoLoad.Url = "Venta en Linea/OfertaDeVenta.aspx"
            ofertaDeVenta.AutoLoad.Mode = LoadMode.IFrame
    
            ofertaDeVenta.CloseAction = CloseAction.Close
            ofertaDeVenta.Render(Me.Form)
            
             
            ofertaDeVenta.Show()
    Where ofertadeventa is another page, inside this i have a user control, that contains a gridpanel

     ...  <table>
                        <tr>
                        </tr>
                        <tr>
                            <div style="text-align: center;  margin-left: 10px; margin-right: 10px">
                                <uc1:GridArticulos ID="GridArticulos" runat="server" ></uc1:GridArticulos>
                            </div>
                        </tr>
                        <tr>
                        </tr>
                    </table> ...
    GridPanel inside GridArticulos

    ...<ext:GridPanel ID="GridPanel1" runat="server" AnimCollapse="false" Height="230" Layout="FitLayout"
            EnableColumnResize="true" AutoScroll="true" >..

    to get the final window
    Click image for larger version. 

Name:	window.png 
Views:	138 
Size:	71.9 KB 
ID:	4807

    When maximize the window the grid keep the same size and dont grow up

    Click image for larger version. 

Name:	window2.png 
Views:	161 
Size:	33.5 KB 
ID:	4808

    After try a lot of ways without good answer, i check that i can access to the window resize event and i try to address to an method but catch it

    AddHandler win.DirectEvents.Resize.Event, AddressOf BestFit

    Anyone can help me to fix this issue pls


    Regards and tks 4 ur help
    Last edited by Cesar.Martin; Sep 20, 2012 at 4:48 PM.

Similar Threads

  1. Replies: 0
    Last Post: Aug 23, 2012, 11:55 PM
  2. [CLOSED] MVC Ajax Automatic binding
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 11, 2012, 12:41 PM
  3. Automatic grid size, in width and height.
    By Galo Q in forum 1.x Help
    Replies: 1
    Last Post: May 12, 2010, 12:12 PM

Tags for this Thread

Posting Permissions