[CLOSED] Adding data to store

  1. #1

    [CLOSED] Adding data to store

    Attached Thumbnails Click image for larger version. 

Name:	erro.png 
Views:	6 
Size:	53.1 KB 
ID:	4575  
    Last edited by Daniil; Aug 07, 2012 at 3:44 AM. Reason: [CLOSED]
  2. #2
    Hi,

    When a grid is empty, this
    var rowIndex = store.getCount() - 1;
    is "-1".

    And that "-1" is passed to
    store.insert(rowIndex, record);
    That's incorrect.

    I think you can just use the add method instead of the insert one.
    store.add(record);
  3. #3
    tks Daniil.

    That's Works. :)

    Mark as closed, please.

Similar Threads

  1. Replies: 0
    Last Post: Apr 22, 2012, 9:39 AM
  2. [CLOSED] Issue when adding data to the store
    By RCN in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 17, 2012, 7:17 PM
  3. Replies: 1
    Last Post: Mar 08, 2012, 2:52 PM
  4. Replies: 5
    Last Post: May 17, 2011, 9:10 AM
  5. [CLOSED] Data Store deriving invalid data variable name
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 15, 2009, 12:31 PM

Posting Permissions