[CLOSED] Component rendered before initialization scripts using placeholder with ResourceMode.Script with MVC

  1. #1

    [CLOSED] Component rendered before initialization scripts using placeholder with ResourceMode.Script with MVC

    The following seems to only be an issue with MVC when using ResourceMode.Script. I am finding that the Statusbar component has its initialization script written to the head before the rest of the Ext.NET initialization scripts, resulting in JavaScript errors (Ext is not defined, because Statusbar JS is using it before the Ext.NET initialization scripts have loaded).

    I spent ages trying to reproduce this in a cut down example (thinking Viewport had something to do with it!) but Daniil was able to provide the simplest case of all!

    @{
        var X = Html.X();
    }
    
    <!DOCTYPE html>
    <html>
    <head>
        <title>ResourcePlaceHolder ResourceMode.Script test</title>
    
        @X.ResourcePlaceHolder(ResourceMode.Script)
    </head>
    <body>
        @X.ResourceManager()
    
        @X.StatusBar()
    </body>
    </html>
    Note
    • If you change ResourceMode to ResourceMode.ScriptFiles, then it is okay.
    • We have found this to be the case for Statusbar, I am not sure if others are affected (most others I have tried seem fine)
    • This could be related to this thread, but I am not sure: http://forums.ext.net/showthread.php...-was-not-found
    Last edited by Daniil; Nov 20, 2013 at 10:16 AM. Reason: [CLOSED]
  2. #2
    Hi

    Thanks for the report. Fixed in SVN
  3. #3
    Many thanks for the quick turnaround. Works nicely now.

Similar Threads

  1. [CLOSED] The Ext.NET initialization script was not found.
    By romeu in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 26, 2012, 10:58 AM
  2. [CLOSED] The Ext.NET initialization script was not found
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 19, 2011, 1:57 PM
  3. [CLOSED] Ext.NET initialization script was not found
    By Justin_Wignall in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 23, 2011, 10:10 AM
  4. Replies: 3
    Last Post: Oct 20, 2010, 3:37 PM
  5. Replies: 13
    Last Post: May 03, 2010, 4:17 AM

Posting Permissions