1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    martin is on a distinguished road

      0  

    Default How to test the number of elements in compositeelement?

    How to test the number of elements in compositeelement?


    Looking through the docs, I can't find a way to find the length of a composite element.

    Code:
    var ds = Ext.select("some-class");
    
    alert(ds.length);
    This returns "undefined", even though there are items found.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Same as your other thread. A composite is not an array. You can test the elements property length though.

    var len = ds.elements.length;

Similar Threads

  1. CompositeElement help, I know there is an easier way
    By walden in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 12 Jan 2007, 5:53 AM
  2. test
    By jack.slocum in forum Community Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 3:56 PM
  3. test
    By jack.slocum in forum Community Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 3:42 PM
  4. Test topic
    By jack.slocum in forum Community Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 3:25 PM
  5. test
    By jack.slocum in forum Community Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 3:25 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar