Panel Loader example in Razor

  1. #1

    Panel Loader example in Razor

    Could someone please give an example of a Loader?

    Html.X().Panel() 
                          .Title("Home")
                          .Icon(Icon.Application)
                          .Border(false)
                          //.Loader(loader => Html.X().ComponentLoader().Url("http://www.google.com").AutoLoad(true).Mode(LoadMode.Frame))
                          //.Loader(loader => loader.Url = "http://www.google.com")
                          //.LoadContent("http://www.google.com")
    (i use the panel inside a TabPanel)

    All three commented lines are not working. The loader "object" seems to be null all the time...
    Last edited by Daniil; Mar 11, 2012 at 5:30 PM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    Thanks for the report, we will fix it
    At this moment try this
    @{
        Ext.Net.Panel loadPanel = new Ext.Net.Panel();
        loadPanel.Loader = new ComponentLoader{...};
    }
    
    @loadPanel.ToBuilder()
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    Problem with Panel Loader

    I seem to have a similar problem. The Loader doesn't seem to work from code behind. I was trying to load an .aspx file with different parameters.. below is my code:

    this.MyPanel.Loader = new ComponentLoader();
    this.MyPanel.Loader.Url = "~/Views/Entries/OtherPage.aspx?ActionType=edit&RecID=" + RecID;
    this.MyPanel.Loader.Mode = LoadMode.Html;
    this.MyPanel.Loader.DisableCaching = true;
    this.MyPanel.LoadContent();
    What could ba a work around?

    Thanks very much..
    Last edited by Daniil; Apr 09, 2012 at 5:11 PM. Reason: Please use [CODE] tags
  4. #4
    Hi @eosalalima,

    Please start a new forum thread. If you feel the threads are related, please cross-link between the two.
  5. #5
    Quote Originally Posted by eosalalima View Post
    I seem to have a similar problem. The Loader doesn't seem to work from code behind. I was trying to load an .aspx file with different parameters.. below is my code:

    this.MyPanel.Loader = new ComponentLoader();
    this.MyPanel.Loader.Url = "~/Views/Entries/OtherPage.aspx?ActionType=edit&RecID=" + RecID;
    this.MyPanel.Loader.Mode = LoadMode.Html;
    this.MyPanel.Loader.DisableCaching = true;
    this.MyPanel.LoadContent();
    What could ba a work around?

    Thanks very much..
    and how we do it in javascript??

Similar Threads

  1. [CLOSED] How to create Panel Loader programmatically
    By Daly_AF in forum 2.x Premium Help
    Replies: 2
    Last Post: Aug 06, 2012, 10:50 AM
  2. [CLOSED] [Razor] How to add HtmlContent to Panel
    By UnifyEducation in forum 2.x Premium Help
    Replies: 4
    Last Post: Jul 27, 2012, 11:41 AM
  3. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM
  4. [CLOSED] ext:Panel with Items and Loader (mixed mode)
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: Apr 24, 2012, 2:45 PM
  5. [CLOSED] [2.0] Razor and Panel TopBar
    By Timothy in forum 2.x Premium Help
    Replies: 6
    Last Post: Feb 20, 2012, 2:58 PM

Posting Permissions