Results 1 to 2 of 2

Thread: [6.0.1] "isFirst" field is not updated correctly after the child node insertion

    You found a bug! We've classified it as EXTJS-11513 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default [6.0.1] "isFirst" field is not updated correctly after the child node insertion

    Steps to reproduce:

    1) Go to any page with the ExtJS 6.0.1 loaded
    2) Run the following commands in the console:

    Code:
    var treeStore = new Ext.data.TreeStore({ fields : [ 'id' ], root : { expanded : true, children : [ { id : 1 }, { id : 2 } ] } })
    treeStore.getRootNode().insertChild(0, treeStore.getById(2))
    Observe the result, which is obviously incorrect:

    Code:
    treeStore.getById(1).isFirst()
    true
    treeStore.getById(2).isFirst()
    true
    Side note - the "getById" still requires the parent node to be expanded.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. We're tracking this issue as EXTJS-11513.

Similar Threads

  1. [OPEN] [4.2.x] "isFirst" field is not updated when inserting nodes
    By SamuraiJack1 in forum Ext:Bugs
    Replies: 1
    Last Post: 16 Oct 2013, 5:39 AM
  2. [CLOSED] Gridpanel/Store field called "id" not handled correctly
    By klodoma1 in forum Ext:Bugs
    Replies: 1
    Last Post: 8 Aug 2012, 11:44 AM
  3. Replies: 0
    Last Post: 5 May 2010, 3:18 PM
  4. Updated Ext 3.3 roadmap: what's "week view", "month views" etc
    By grzegorz.borkowski in forum Community Discussion
    Replies: 11
    Last Post: 8 Mar 2010, 12:23 PM
  5. Replies: 4
    Last Post: 18 Dec 2009, 11:13 AM

Posting Permissions

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