[CLOSED] Autoload and Loader differences (Migrating from coolite to Ext.Net)

  1. #1

    [CLOSED] Autoload and Loader differences (Migrating from coolite to Ext.Net)

    Hello:

    In coolite we have the next code:

            Panel.AutoLoad.Url = pagina
            Panel.AutoLoad.ShowMask = True
            Panel.AutoLoad.MaskMsg = "Cargando..."
            Panel.AutoLoad.Mode = Coolite.Ext.Web.LoadMode.IFrame
            Panel.Load()
    I change for the next code in Ext.Net


            Panel.Loader.Url = pagina
            Panel.Loader.ShowMask = True
            Panel.Loader.MaskMsg = "Cargando..."
            Panel.Loader.Mode = LoadMode.Frame
            Panel.LoadContent()
    This solution have some problems:
    ShowMask and MaskMsg not member of ComponentLoader.

    With the code Panel.Loader.Url and Panel.Loader.Mode have good syntax and compile but when you run the code generate this error:

    System.NullReferenceException
    HResult=0x80004003
    Mensaje = Referencia a objeto no establecida como instancia de un objeto.
    Origen = App_Web_h2wskyho
    Seguimiento de la pila:
    en sisnet.cargaPagina(String pagina, APLICACION aplicacion) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 72
    en sisnet.Page_Load(Object sender, EventArgs e) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 30
    en System.EventHandler.Invoke(Object sender, EventArgs e)

    Comment: The variable pagina have a valid value.

    I found using Panel.LoadContent(pagina) and eliminating the command
    Panel.Loader.Url = pagina
    Panel.Loader.Mode = LoadMode.Frame
    the page load work but is not a good solution for me because I lost the other functionality.

    What is your recommendation to do?

    Thanks
    Last edited by fabricio.murta; Dec 14, 2018 at 10:00 PM.
  2. #2

    Version Ext.Net

    Hello:

    I forgot to say that the version Ext.Net is 4.

    Have a nice day.
  3. #3

    Solution ...

    Hello:

    I got solution.

    Panel.Loader = New ComponentLoader()
    Panel.Loader.Url = pagina
    Panel.Loader.Mode = LoadMode.Frame
    Panel.LoadContent()
    The only problem is Panel.Loader.ShowMask and Panel.Loader.MaskMsg.

    Have a nice day.
  4. #4
    Hello @devSF!

    The ShowMask and MaskMsg are respectively:

    panel.Loader.LoadMask.ShowMask = true;
    panel.Loader.LoadMask.Msg = "Cargando...";
    Now, about the error you are getting when you try to run the code, can't tell much about it. Can you reproduce the issue in a runnable, simplified test case? You might be able to base your sample off this example: Panel > Basic > Loaders

    If in doubt about drawing the test case, please refer to our topic posting guidelines:
    - Tips for creating simplified code samples
    - More Information Required
    - Forum Guidelines

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  5. #5

    Error corrected

    Hello Fabricio:

    Thanks for your help.
    The error was fix. The problem was that i need to declare the loader:
    Panel.Loader = New ComponentLoader()
    Best regards
  6. #6
    Hello @devSF!

    Glad you could find a solution for the problem, thanks for the feedback and sharing the outcome!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 2
    Last Post: Aug 22, 2016, 9:41 PM
  2. Replies: 7
    Last Post: Nov 18, 2014, 12:05 PM
  3. [CLOSED] Migrating from v1.5 to 2.0.1 differences.
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 27, 2012, 1:47 PM
  4. Replies: 3
    Last Post: Feb 24, 2011, 2:41 PM
  5. [CLOSED] Migrating from Coolite to Ext.Net
    By daneel in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 19, 2011, 11:44 AM

Posting Permissions