1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    226
    Vote Rating
    2
    ypandey is on a distinguished road

      0  

    Default EXTJS 4.1 Model idProperty issue

    EXTJS 4.1 Model idProperty issue


    Hi,

    I have upgraded from 4.0.7 to 4.1 RC2 and my treepanel failed to load. The reason being, I am using default idProperty i.e. id which has conversion field in my model. But id field is not getting set. Seeing few posts I configured my idProperty to some other value in my Model. Even though I set different value for idProperty the default value is seen in firebug. Hence id and parentsId is always undefined.

    This issue is already posted in
    http://www.sencha.com/forum/showthre...red-idProperty.
    I wanted to know whether there is any workaround or this issue will be fixed.

    Thanks

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    77
    Vote Rating
    2
    yAdEs is on a distinguished road

      0  

    Default


    You shouldn't change idProperty for treeStore, cause it will rewrite a new model with id,parent,children blabla for the store, if you change idProperty to others, it will lose to find it.

    I suggest you use default id, parentId fields in your model.

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    226
    Vote Rating
    2
    ypandey is on a distinguished road

      0  

    Default


    I am using default idProperty for which I have a convert field.

    name: 'id',
    convert: function (value, record) {
    var valueObject = record.get('valueObj');
    return valueObject['uniquePath'];
    }

    This was getting populated in 4.0.7, but in 4.1.1 RC2 the 'id' field is not present when seen in firebug. Hence the id and subsequently the parentId for child nodes are 'undefined'.

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