This duplicates another bug already reported in our system: DSGNR-1378
  1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    2
    Vote Rating
    0
    cscortes is on a distinguished road

      0  

    Default TreeNode root/data property confusion

    TreeNode root/data property confusion


    Trying out the new Sencha Designer and using the TreeStore. I worked to use designer to make an example that looked like the sample code on:

    http://docs.sencha.com/touch/2-0/#!/...iew.NestedList

    Strangely enough, Sencha Designer looked like it was giving me an error -- something like "Please associate a model .... inline data ... " on the TreeStore.

    My question is if I fill out the root property why should I have to setup the data property (as the example does not bother to set the data property)? They both kind of seem to be doing the same thing exception the data property seems to work on an array of objects and root expects a dictionary object. I got my example to work by setting the data property to the empty list and setting the root property to what is in the sample code on the url.

    Is there a good reason to have a data property for the TreeStore?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    cscortes -

    Thanks for the post. Could you please post a sample project that illustrates your problem?

    After creating the project go to File -> Export/Archive Project and then post the .xda file here on the forums.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    2
    Vote Rating
    0
    cscortes is on a distinguished road

      0  

    Default Sample

    Sample


    Here is the sample file. I tried to upload as an xda file, but it didn't like it. So I zipped it and it worked: Test2.zip. Note that I changed the data back to null so if you loaded it in the new sencha designer you can see the warning bubble. If you set the data property to [], it goes away.

    thanks!

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report.

    The issue is that the TreeStore should not be showing that warning when data is unset.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    This will be fixed in the next build, after build 276.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

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