[CLOSED] Migrating a MVC App from v1 to v2

  1. #1

    [CLOSED] Migrating a MVC App from v1 to v2

    The following example was implemented using V1
    <ext:Panel ID="Panel1" runat="server" Title="example">
        <AutoLoad Url="/Compartilhado/Test/">
            <Params>
                <ext:Parameter Name="containerId" Value="#{Panel1}" Mode="Value" />
            </Params>
        </AutoLoad>
    </ext:Panel>
    public ContentResult Test(string containerId)
    {
        ContentResult cr = new ContentResult();
    
        Button b = new Button() { Text = "Test", Icon = Icon.Add };
    
        cr.Content = string.Format(@"<script>{0}</script>", b.ToScript(RenderMode.AddTo, containerId));
    
        return cr;
    }
    Im trying to migrate to version 2.0 but i was not able to accomplish it. Any ideas to make it work?

    <ext:Panel ID="Panel1" runat="server" Title="example">
        <Loader ID="Loader2" runat="server" AutoLoad="true" Url="/Example/Test/">
            <Params>
                <ext:Parameter Name="containerId" Value="Panel1" Mode="Value" />
            </Params>
        </Loader>
    </ext:Panel>
    Last edited by Daniil; Apr 16, 2012 at 12:53 PM. Reason: [CLOSED]
  2. #2
    Hi,

    We suggest the following way.
    http://forums.ext.net/showthread.php...ll=1#post78972
  3. #3
    By the way, to get your initial code working you should set up
    Scripts="true"
    for the Loader.

    The following
    <ext:Parameter Name="containerId" Value="#{Panel1}" Mode="Value" />
    with #{} syntax will work after updating from SVN.

Similar Threads

  1. [CLOSED] Migrating to 2: PartialViewResult
    By PhilG in forum 2.x Premium Help
    Replies: 4
    Last Post: May 21, 2012, 10:27 AM
  2. [CLOSED] Migrating to 2: TreePanel loader
    By PhilG in forum 2.x Premium Help
    Replies: 11
    Last Post: May 18, 2012, 4:24 PM
  3. [CLOSED] Migrating to Coolite 1.0
    By pattake in forum 1.x Premium Help
    Replies: 4
    Last Post: Mar 31, 2011, 5:11 PM
  4. [CLOSED] Migrating from Coolite to Ext.Net
    By daneel in forum 1.x Premium Help
    Replies: 1
    Last Post: Jan 19, 2011, 12:44 PM
  5. [CLOSED] problem migrating from 06 to 07
    By Lex in forum 1.x Premium Help
    Replies: 2
    Last Post: Mar 05, 2009, 4:57 PM

Posting Permissions