[CLOSED] What is the equivalent of Ext.tree.treenode in extjs4.1

  1. #1

    [CLOSED] What is the equivalent of Ext.tree.treenode in extjs4.1

    Hi,

    i have developed a solution based on treepanel component of extjs 3.4, i fully used ext.tree.treenode to insert nodes and also i use its methods.
    Now i want to migrate to extjs 4.1, but they did not use anymore ext.tree.treenode,

    I searched an alternative way to insert nodes to non route nodes, i found that some extjs developers recommended to use well formatted records and then append them to the target node, this solution helped me to create nodes, but when i try to access attributes of these new nodes a javascript error was handled when running the page, it told me that 'raw' is undefined.
    for information 'raw' is the equivalent of 'attributes' in extjs 3.4.

    Does any one have solution how to work with nodes in extjs 4.1 , I will be thankfull if an example will be given.

    Thanks.
    Last edited by Daniil; Aug 26, 2012 at 10:50 AM. Reason: [CLOSED]
  2. #2
    Hi,

    TreePanel was much reworked in ExtJS 4.

    Yes, there is no TreeNode anymore. There is just Node and it doesn't represent any UI, it's just a record.

    Regarding the issue with the "raw" property. I think there was a bug in ExtJS 4.1.0 which was fixed in ExtJS 4.1.1. Here is the related thread.
    http://forums.ext.net/showthread.php?20563

    Does any one have solution how to work with nodes in extjs 4.1 , I will be thankfull if an example will be given.
    Well, we have a number of TreePanel examples.
    https://examples2.ext.net/#/search/treepanel

Similar Threads

  1. [CLOSED] 'div' equivalent in ext.net?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 06, 2011, 6:03 PM
  2. [CLOSED] Ext.net and extjs4
    By krzak in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 01, 2011, 9:07 PM
  3. Replies: 1
    Last Post: May 04, 2010, 9:54 AM
  4. Replies: 0
    Last Post: Dec 10, 2009, 11:14 AM
  5. [CLOSED] Equivalent of Ext.ID via C# Codebehind
    By Steve in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 03, 2009, 3:53 PM

Posting Permissions