[Razor] Unable to create Portal panel

  1. #1

    [Razor] Unable to create Portal panel

    Hi,

    I am trying to create below mentioned example by using Razor engine. But i am getting some script error. http://examples2.ext.net/#/Portal/Basic/Simple/

    @using Ext.Net.MVC
    @{
        Layout = null;
        ViewBag.Title = "Portal";
    }
    <html>
    <head>
        @Html.X().ResourcePlaceHolder(Ext.Net.ResourceMode.ScriptFiles)
    </head>
    <body>
        @Html.X().ResourceManager()
        @using (Html.BeginForm())
        {                
            @(
                
     Html.X().Viewport()
            .Layout("border")
            .Items(viewportitems =>
            {
                // West Panel
                viewportitems.Add(
                    Html.X().Panel()
                    .ID("panelheader")
                    .Region(Ext.Net.Region.West)
                    .Width(200)
                    .Collapsible(true)
                    .Split(true)
                    .Layout(Ext.Net.LayoutType.Accordion)
                    .Margins("5 0 5 5")
                    );
                // Center Panel
                viewportitems.Add(
                    Html.X().TabPanel()
                    .ID("TabPanel")
                    .Region(Ext.Net.Region.Center)
                    .Title("TabPanel")
                    .Margins("5 5 5 0")
                    .Items(tabpanelitems =>
                    {
                        tabpanelitems.Add(
                            // Panel
                            Html.X().Panel()
                            .ID("panel1")
                            .Title("Tab 1")
                            .Layout(Ext.Net.LayoutType.Fit)
                            .Items(panel1items =>
                            {
                                panel1items.Add(
                                    //Portal
                                    Html.X().Portal()
                                    .ID("portal")
                                    .Border(false)
                                    .Items(portalitems =>
                                    {
                                        //Portal Column
                                        portalitems.Add(
                                            Html.X().PortalColumn()
                                            .ID("PortalColumn")
                                            .Items(portalcolumnitems =>
                                            {
                                                //Portlet
                                                portalcolumnitems.Add(
                                                    Html.X().Portlet()
                                                    .ID("Portlet1")
                                                    .Title("Another Panel 1")
                                                    .Icon(Ext.Net.Icon.Accept)
                                                    );
                                            })
                                            );
                                    })
                                    );
                            })
                            );
                    })
                    );
            })
                )
        }
    </body>
    </html>
    Thanks in advance.

    Regards,
    Mukesh Selvaraj
    Attached Thumbnails Click image for larger version. 

Name:	extexception.jpg 
Views:	110 
Size:	87.1 KB 
ID:	4111  
  2. #2
    I am awaiting for a week. It would be more helpful to me to get the soultion or workaround to this issue.

    Thans in advance.


    Regards,
    Mukesh Selvaraj
    Last edited by vs.mukesh; Apr 23, 2012 at 9:21 AM.
  3. #3
    Any Updates....

Similar Threads

  1. [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
  2. [Razor] How to create a TabStrip
    By jxlarrea in forum 2.x Help
    Replies: 2
    Last Post: Apr 20, 2012, 8:38 PM
  3. How to create a Deluxe Portal at run time ?
    By SaMaRZe in forum 1.x Help
    Replies: 6
    Last Post: May 14, 2010, 2:19 PM
  4. Replies: 2
    Last Post: Dec 25, 2009, 2:56 PM
  5. [CLOSED] Create Stateful Portal - Save Position and Collapse of Portlets
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 16, 2008, 7:26 PM

Posting Permissions