Sep 20, 2012, 4:45 PM
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
to get the final window
When maximize the window the grid keep the same size and dont grow up
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
Anyone can help me to fix this issue pls
Regards and tks 4 ur help
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
When maximize the window the grid keep the same size and dont grow up
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.