[CLOSED] MVC 3 [Razor] TabPanel Content Loading

  1. #1

    [CLOSED] MVC 3 [Razor] TabPanel Content Loading

    I$ am using MVC3 W/ Razor and Telerik controls andd I need to replace the Telerik Tabs with Ext.Net TabPanel.
    Question:
    How do I load the content from the Controller to a TabPanel?
    Is there a method that will accept the ActionName, ControllerName and the RouteValues (like the LoadContentFrom from Telerik)? (I need to replace the existing Telerik control with the Ext.Net TabPanel)
    Last edited by Daniil; Sep 19, 2012 at 8:50 AM. Reason: [CLOSED]
  2. #2
    Use Loader for a tab

    Content loading
    .Loader(Html.X().ComponentLoader()
                .Url(Url.Action("AutoLoadPartialView"))
                .Mode(LoadMode.Script)
                .Params(new { containerId = "TabPanel1" })
            )
    
    public PartialViewResult AutoLoadPartialView(string containerId)
            {
                return new PartialViewResult 
                { 
                    ContainerId = containerId,                
                    ViewName = "PartialView",
                    WrapByScriptTag = false
                };
            }
    For Items loading
    public PartialViewResult LoadView(string containerId)
            {
                return new PartialViewResult { 
                    ViewName = "CenterView",
                    ContainerId = containerId,
                    RenderMode = RenderMode.AddTo
                };
            }
    If you update from 2.1 branch then you will find MVC examples expolorer. It contains samples demonstrate how to load items/content
    http://svn.ext.net/premium/branches/2.1
  3. #3
    I got the fix, this thread can be closed.

Similar Threads

  1. Height of TabPanel content
    By Chuck in forum 1.x Help
    Replies: 9
    Last Post: Mar 14, 2012, 9:31 PM
  2. Replies: 4
    Last Post: Nov 03, 2011, 6:46 PM
  3. Tab Panel Content Loading
    By xMAC in forum 1.x Help
    Replies: 5
    Last Post: Dec 10, 2010, 7:07 AM
  4. [CLOSED] Tabpanel + content issue
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 24, 2009, 11:07 AM
  5. Dynamic loading content page into Panel
    By wildspirit in forum 1.x Help
    Replies: 2
    Last Post: Feb 04, 2009, 5:59 PM

Posting Permissions