Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    192
    Vote Rating
    3
    rpoddar 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
    Ext JS Premium Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    192
    Vote Rating
    3
    rpoddar 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

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