[CLOSED] Ext.Net 2.0 - convert 1.2 version Ext.Net MVC fail

  1. #1

    [CLOSED] Ext.Net 2.0 - convert 1.2 version Ext.Net MVC fail

    I have a project developed in Ext.Net 1.2 (Ext.Net.dll) also using the MVC Ext.Net (Ext.Net.MVC.dll), but now I tried to convert it to Ext.Net 2.0 does not work.
    I saw the source code Ext.Net 2.0 and seems to have been built into the Ext.Net MVC to it, thus no longer needing to use Ext.Net.MVC.dll, but is not working because the class AjaxStoreResult does not exist.
    How do I convert the project to version 2.0?
    Last edited by Daniil; Apr 06, 2012 at 9:59 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by romeu View Post
    the class AjaxStoreResult does not exist.
    Please use StoreResult.

    Quote Originally Posted by romeu View Post
    How do I convert the project to version 2.0?
    Well, there is no any automatic way to port. So, the answer - manually and step by step.

    There is a lot of breaking changes. As far as we find a new one we list it in the CHANGELOG:
    http://examples2.ext.net/#/Getting_S...nts/CHANGELOG/

    The examples may be helpful.
    http://examples.ext.net

    Searching on the Premium Help 2.x and Help 2.x forums may be helpful as well.

    Here you can choose a forum for a searching request:
    http://forums.ext.net/search.php?search_type=1

    If the options above don't help to find an answer, you are welcome on the forum with a new forum thread with details about an issue.
  3. #3
    Thanks.

    I will test.

    Quote Originally Posted by Daniil View Post
    Hi,



    Please use StoreResult.



    Well, there is no any automatic way to port. So, the answer - manually and step by step.

    There is a lot of breaking changes. As far as we find a new one we list it in the CHANGELOG:
    http://examples2.ext.net/#/Getting_S...nts/CHANGELOG/

    The examples may be helpful.
    http://examples.ext.net

    Searching on the Premium Help 2.x and Help 2.x forums may be helpful as well.

    Here you can choose a forum for a searching request:
    http://forums.ext.net/search.php?search_type=1

    If the options above don't help to find an answer, you are welcome on the forum with a new forum thread with details about an issue.
  4. #4
    Other problems that I saw:

    Class Ext.Net.RecordField there.
    Class Ext.Net.Column no longer has the Header property.

    I can find in the changelog that's changed, what classes do not exist or have been replaced?

    Quote Originally Posted by Daniil View Post
    Hi,



    Please use StoreResult.



    Well, there is no any automatic way to port. So, the answer - manually and step by step.

    There is a lot of breaking changes. As far as we find a new one we list it in the CHANGELOG:
    http://examples2.ext.net/#/Getting_S...nts/CHANGELOG/

    The examples may be helpful.
    http://examples.ext.net

    Searching on the Premium Help 2.x and Help 2.x forums may be helpful as well.

    Here you can choose a forum for a searching request:
    http://forums.ext.net/search.php?search_type=1

    If the options above don't help to find an answer, you are welcome on the forum with a new forum thread with details about an issue.
  5. #5
    Hi,

    RecordField is renamed to ModelField
    Header property of Column is renamed to Text
    Please see
    http://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/
    Vladimir Shcheglov
    Sr. Developer
  6. #6
    Thank you, Vladimir.

    How to serialize a Column object instance?
    Method Serialize() does not exist anymore in Column class.

    Quote Originally Posted by Vladimir View Post
    Hi,

    RecordField is renamed to ModelField
    Header property of Column is renamed to Text
    Please see
    http://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/
  7. #7
    Please clarify purpose of column serialization
    Column is component now therefore you can use ToScript and ToConfig methods
    Vladimir Shcheglov
    Sr. Developer
  8. #8
    I have this code, which worked in version 1.2:

    public ActionResult AddColumn()
            {
    
                Column c = new Column()
                {
                    Header = "New",
                    DataIndex = "someDataIndex"
                };
    
                RecordField rf = new RecordField()
                {
                    Name = "someDataIndex"
                };
    
                AjaxResult r = new AjaxResult();
                r.Result = new
                {
                    column = c.Serialize(),
                    field = new ClientConfig().Serialize(rf)
                };
    
                return r;
            }

    How to convert?

    Quote Originally Posted by Vladimir View Post
    Please clarify purpose of column serialization
    Column is component now therefore you can use ToScript and ToConfig methods
    Last edited by Daniil; Mar 30, 2012 at 10:46 PM. Reason: Please use [CODE] tags
  9. #9
    Please use the ToConfig method.

    Example
    public ActionResult AddColumn()
    {
     
        Column c = new Column()
        {
            Text = "New",
            DataIndex = "someDataIndex"
        };
     
        ModelField field = new ModelField()
        {
            Name = "someDataIndex"
        };
     
        AjaxResult r = new AjaxResult();
        r.Result = new
        {
            column = c.ToConfig(),
            field = new ClientConfig().Serialize(field)
        };
     
        return r;
    }
  10. #10
    Thanks.
    I will test that code.

    Quote Originally Posted by Daniil View Post
    Please use the ToConfig method.

    Example
    public ActionResult AddColumn()
    {
     
        Column c = new Column()
        {
            Text = "New",
            DataIndex = "someDataIndex"
        };
     
        ModelField field = new ModelField()
        {
            Name = "someDataIndex"
        };
     
        AjaxResult r = new AjaxResult();
        r.Result = new
        {
            column = c.ToConfig(),
            field = new ClientConfig().Serialize(field)
        };
     
        return r;
    }

Similar Threads

  1. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  2. [CLOSED] [1.0] Stores fail with error
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Sep 02, 2010, 3:33 PM
  3. [CLOSED] validation Fail
    By majestic in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 05, 2009, 4:36 AM
  4. ScriptManager in 2.0 app Causes CSS to fail
    By Tbaseflug in forum Bugs
    Replies: 0
    Last Post: Apr 22, 2009, 1:52 PM
  5. [CLOSED] validation fail
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 12, 2009, 5:45 AM

Posting Permissions