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.AutoLoad.Url = "Venta en Linea/OfertaDeVenta.aspx"
            ofertaDeVenta.AutoLoad.Mode = LoadMode.IFrame
            ofertaDeVenta.CloseAction = CloseAction.Close
    Where ofertadeventa is another page, inside this i have a user control, that contains a gridpanel

     ...  <table>
                            <div style="text-align: center;  margin-left: 10px; margin-right: 10px">
                                <uc1:GridArticulos ID="GridArticulos" runat="server" ></uc1:GridArticulos>
                    </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:	86 
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:	92 
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 5:48 PM.

Similar Threads

  1. Replies: 0
    Last Post: Aug 24, 2012, 12:55 AM
  2. [CLOSED] MVC Ajax Automatic binding
    By adelaney in forum 2.x Premium Help
    Replies: 4
    Last Post: Jun 11, 2012, 1: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, 1:12 PM
  4. Replies: 1
    Last Post: Mar 09, 2010, 11:57 AM
  5. Forms - Automatic fields generation from xml
    By leflaco in forum Feature Requests
    Replies: 1
    Last Post: Jan 07, 2009, 10:38 AM

Tags for this Thread

Posting Permissions