1. #1
    Sencha Premium Member
    Join Date
    Mar 2008
    Location
    San Jose, CA
    Posts
    124
    Vote Rating
    0
    surfyogi is on a distinguished road

      0  

    Default Tree Nodes - Top level nodes have accordion style, different from sub-level nodes

    Tree Nodes - Top level nodes have accordion style, different from sub-level nodes


    I have a tree I'd like to style such that top level nodes look something like an accordion, but of course, multiple top nodes may be opened at the same time, like a tree.

    Sub nodes would look like typical nodes, maybe with custom icons but completely unlike top level nodes.


    Anything special about top level nodes that would automatically allow this to happen or do I need to detect top level nodes when I read in the json in the tree-loader and give those nodes a completely different background css class?

    Not sure where to start. Dont' want to use an accordian and multiple trees; seems like that will just totally get out of hand.

    Any clues appreciated, or examples of styled custom tree nodes, thx

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Give your top level nodes a specific cls and write css rules to give the nodes with this class a accordion type look.

Similar Threads

  1. Top level nodes Pagination for a TreeGrid
    By gopanothera in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Aug 2010, 7:42 PM
  2. [solved] TreePanel structure is displaying top level at all nodes
    By Elijah in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 20 Apr 2010, 2:12 PM
  3. Replies: 1
    Last Post: 27 Sep 2009, 6:15 PM
  4. Expand all nodes under one level
    By Kishan.Srinivas in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Mar 2009, 4:00 AM
  5. Tree - colorize the name of top level nodes
    By zeroed in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 4 Aug 2008, 1:27 AM

Thread Participants: 1

Tags for this Thread