[CLOSED] Row Layout in Razor

  1. #1

    [CLOSED] Row Layout in Razor

    Hello,
    I have searched through the Forum but cant find simple example on how to use RowLayout wtih Razor.
    Thanks
    Last edited by Daniil; Nov 01, 2012 at 5:54 PM. Reason: [CLOSED]
  2. #2
    Hi @joxa83,

    There is no RowLayout anymore.

    Please use a VBoxLayout.

    Example
    <!DOCTYPE html>
    
    <html>
    <head>
        <title>Ext.Net.MVC v2 Example</title>    
    </head>
    <body>
        @Html.X().ResourceManager()
    
        @(Html.X().Viewport()
            .LayoutConfig(new VBoxLayoutConfig() // or just .Layout("vbox") for the Viewport if no need in these options
                { 
                    Align = VBoxAlign.Stretch
                }) 
            .Items(
                Html.X().Panel().Title("Initial Height = 25%").Flex(1),
                Html.X().Panel().Title("Initial Height = 100px").Height(100),
                Html.X().Panel().Title("Initial Height = 75%").Flex(3)
            
            )
        )
    </body>
    </html>
    See also
    http://docs.sencha.com/ext-js/4-1/#!...container.VBox

Similar Threads

  1. [CLOSED] [Razor] TreeGrid in Razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 01, 2012, 9:12 AM
  2. [CLOSED] [RAZOR] DraggablePanelConfig doesn't have StartDrag in Razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 28, 2012, 2:37 PM
  3. [CLOSED] [Razor] HyperLink Text in Razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 20, 2012, 12:16 PM
  4. [CLOSED] [Razor] Add GridView to GridPanel in razor
    By boris in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 09, 2012, 4:23 PM
  5. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM

Posting Permissions