1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Borken, Germany
    Posts
    2
    Vote Rating
    0
    Henni is on a distinguished road

      0  

    Default Unanswered: Tree new loading

    Unanswered: Tree new loading


    Hello,

    I load a Tree from a Json File.
    Then I checked a Node starts a listener Function "checkchange". I want to change the cls attribut from the node in this function (change the color for example). Then the tree show automatically the new Color from the Node. I tried a lot but the tree show not the changes.

    Can someone help me. Thanks.

    Code from the MVC "View"
    1. Ext.define('RTD.view.tree.ObjectSelection',
    2. {
    3. extend: 'Ext.tree.Panel',
    4. alias : 'widget.ObjectSelection',
    5. store: 'DistrictObjectTypeTree',
    6. rootVisible: true,
    7. useArrows: true,
    8. frame: true,
    9. listeners:
    10. {
    11. 'checkchange': function(node, checked)
    12. {
    13. this.tree= Ext.widget('ObjectSelection');
    14. var n = node;
    15. n.data.cls = 'newClass';
    16. alert(n.data.cls);
    17. this.tree.getLoader().load();
    18. this.tree.doLayout();
    19. this.tree.load();
      tree.jpg

    1. #2
      Sencha User
      Join Date
      Jun 2008
      Posts
      10
      Answers
      1
      Vote Rating
      0
      fbchen is on a distinguished road

        0  

      Default


      The tree node adds a default class 'x-tree-checked' upon the tree node is checked, so just define your css style. Try this:
      .x-tree-checked {
      text-decoration: line-through;
      color: red;
      }

    Thread Participants: 1

    Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi