1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    132
    Answers
    2
    Vote Rating
    1
    darkling235 is on a distinguished road

      0  

    Default Answered: Alter TreeGrid Nodes to be horizontal

    Answered: Alter TreeGrid Nodes to be horizontal


    I'm trying to estimate the work required to change the TreeGrid from a node's siblings being above and underneath it, to it's siblings all being on the same row. Would this be a view change or an appearance change? I'm trying to figure out how the TreeAppeance lays down the DOM but I can't seem to locate it. The TreeGreyAppearance only appears to use CSS. Can anyone tell me where to look to see what the normal process is and how hard it would be to modify it?
    Thanks

  2. All the siblings on the same row doesnt really sound like a Grid anymore (and TreeGrid inherits from Grid). How would N items on the same row share M columns? Where would all of the content be drawn for each?

    The various base appearance implementations are not intended to be a starting point for all possible use cases, but for ones that are fairly similar - changing colors or basic images is the main use case they are built for, though some can go as far as modifying the basic DOM structure. If you are building something totally unique, you may need to start from just the interface, and implement all methods. You may find it helpful to start with the base appearances to get the behaviors right, but completely rewrite the render methods.

    If you meant Tree instead, the TreeAppearance interface supports three render methods - one for the outside of the tree, one for the inside, and one for each node that gets drawn. You will probably need to replace the renderNode method, and it may also be necessary to extend the Tree.getContainer method. Or, it may be sufficient to append children directly, with some style like float:left applied to each.

  3. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,639
    Answers
    107
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    All the siblings on the same row doesnt really sound like a Grid anymore (and TreeGrid inherits from Grid). How would N items on the same row share M columns? Where would all of the content be drawn for each?

    The various base appearance implementations are not intended to be a starting point for all possible use cases, but for ones that are fairly similar - changing colors or basic images is the main use case they are built for, though some can go as far as modifying the basic DOM structure. If you are building something totally unique, you may need to start from just the interface, and implement all methods. You may find it helpful to start with the base appearances to get the behaviors right, but completely rewrite the render methods.

    If you meant Tree instead, the TreeAppearance interface supports three render methods - one for the outside of the tree, one for the inside, and one for each node that gets drawn. You will probably need to replace the renderNode method, and it may also be necessary to extend the Tree.getContainer method. Or, it may be sufficient to append children directly, with some style like float:left applied to each.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar