1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    13
    Vote Rating
    0
    JulianB is on a distinguished road

      0  

    Default Unanswered: TreeStore loading

    Unanswered: TreeStore loading


    Hello everyone,

    What happens:
    Trying to load data into a TreeStore. There is a Treepanel to which the store is attached.
    The following error pops up:
    Uncaught TypeError: Cannot read property 'parentNode' of undefined ext-all-dev.js:153509
    The view of the treepanel is resized to be 18x its original width (??), and a folder icon without any text is shown.

    The Situation:
    The treestore has a model defined with 2 columns, "id" and "name".
    A treepanel exists, (without any altering) where the store is bound to.
    The treepanel is inside a panel, which itself is a tab of a tabpanel.

    All elements were created with the Sencha Architect (lastest version).

    Excerpt from the line where the error is thrown:
    Code:
    oldCells = oldRow.query(me.cellSelector);
    [...]
    row = oldCells[0].parentNode;
    
    I debugged it, me.cellSelector is undefined, so oldCells is an empty array.
    (I repeat: The complete UI was designed with the Architect and is pretty much "default").


    What exactly am I doing wrong?
    Do you need further code (especially mine?)

    Kind regards,
    Julian

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,007
    Answers
    666
    Vote Rating
    459
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You have not provided much information ... you may need to publish your call stack.

    Where are getting the data from?
    Do you see return data? Is the store populated?

    Scott.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    13
    Vote Rating
    0
    JulianB is on a distinguished road

      0  

    Default


    Hi,

    I solved the problem, by using a Tree Grid Panel instead of a Tree Panel.
    The data comes from a JSON source. (which returns correct json...)

    To my amazement The store is not populated as long as I attach it to a tree panel (it seems to fail while filling), but is populated when attaching it to a tree grid...


    Still wondering why this occurs, i decided to live with the tree grid.


    Kind regards,
    Julian

Thread Participants: 1

Tags for this Thread