Results 1 to 3 of 3

Thread: touch-charts-2.0.0-beta - TreeStore [BUG]

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default touch-charts-2.0.0-beta - TreeStore [BUG]

    Using Sencha Touch with touch-charts-2.0.0-beta package
    I found the following bug in the object :
    in an attempt to insert a new child node, the new node is correctly inserted under the parent node
    but is replicated under the root node.
    Here is the sample code:

    Ext.define ('ListItem', {
    extend: '',
    config: {
    fields: ['text']
    var data = {id: 'root', items: [{id: 'x1', text: 'Item1'},
    {id: 'x2', text: 'Item2'},
    {id: 'x3', text: 'Item3'}]};
    var treeStore = Ext.create ('', {
    model: 'ListItem',
    defaultRootProperty: 'items',
    root: data
    treeStore.getRoot (). findChild ('id', 'x1', false)
    .appendChild ({text: 'SubItem1', leaf: true});

    The new 'SubItem1' node is correctly entered under the 'Item1' node but is incorrectly replicated under the 'root' node

    Thanks in advance.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Have you tried this in a later release?

    Also, Touch Charts 2 beta is really deprecated in favor of the rewrite in Sencha Touch 2.1.0 b1/2/3
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Vote Rating


    With the "Sencha Touch 2.1.0 b3", the problem does not occur,
    but I wanted to delay the release upgrade.
    Thanks anyway!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts