Results 1 to 2 of 2

Thread: Remove record from treestore not synchronised with proxy

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    May 2013

    Exclamation Remove record from treestore not synchronised with proxy

    tested with Extjs. 6.5.x and 6.6.x

    I have a treepanel and treestore which get its data from the server by a simple proxy
    When I remove a record from the store by store.remove(record) the record is removed from the store as expected. This is also shown in the treepanel.
    But, when I call: store.getRemovedRecords() it return an empty array, so when I call store.sync(), the data is not synchronised with the database.

    When I do the same test with a grid and datastore and remove a record, store.getRemoveRecords() returns as expected a array with the removed record!

    I included a simple fiddle to demonstrate this:
    To use the fiddle:
    - run it
    - select a record and press the delete button..You'll see the record be removed from the panel
    - press 'Show total delete' button, which shows nothing if nothing is marked for deletion;

    I included also the lines for switching to a grid-panel, datastore and columns. When you remove a selected record and press 'Show total delete' you get the message and total record ready to be synchronised…


  2. #2
    Ext Support Team
    Join Date
    Jan 2018


    Hello Arno,

    TreeStore records are of type NodeInterface and thus are removed using record.remove(true). Updated the fiddle to show that.

    Sencha Support.

Similar Threads

  1. TreeStore: add new record through proxy
    By tommy777 in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 3 Oct 2016, 10:27 PM
  2. Replies: 7
    Last Post: 16 Mar 2016, 4:17 PM
  3. Replies: 2
    Last Post: 16 Sep 2013, 11:10 PM
  4. Replies: 2
    Last Post: 18 Mar 2013, 10:36 AM
  5. [FIXED-339] LocalStore Proxy Record Remove Issue
    By aleg in forum Sencha Touch 1.x: Bugs
    Replies: 14
    Last Post: 16 Mar 2011, 10:02 AM

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