Results 1 to 2 of 2

Thread: Store findBy always returns -1

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    52
    Answers
    2
    Vote Rating
    1
      0  

    Default Answered: Store findBy always returns -1

    Hi,

    why is the findBy method always returning -1, which means no record could be found. I think I'm doing something wrong :/

    code snippet:

    Code:
    var index = store.findBy(function(record,id){
       return true;
    });
    This should always return the index of the first element. What is the proper way of using the findBy method?

  2. Fixed it by myself. The 'store' variable was not properly initialized :/

Posting Permissions

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