1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    65
    Vote Rating
    0
    emmas is on a distinguished road

      0  

    Default count distinct for a particular column

    count distinct for a particular column


    I need to loop through all rows of the grid (including not modified ) and count distinct data from a particular column. Is there a way to do that?
    For example first row shows check# 11, second row check# 22, and the third row check# 11 again, the count distinct should return 2.

    thanks

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is an own algorithm. Simple get all models from the store, loop over them and count it as needed. You know the dataindex of that column, so you can check for douple entries.

Similar Threads

  1. Editable Grid with All ComboBoxes, and Distinct values?
    By jwong in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 9 Dec 2009, 3:52 AM
  2. Grid: Get hidden column count
    By ext_fan in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 14 Aug 2009, 11:03 AM
  3. [2.2] Checkboxgroup and column count
    By hunkybill in forum Ext 2.x: Bugs
    Replies: 1
    Last Post: 14 Sep 2008, 7:24 PM
  4. Store Column Count?
    By dlbjr in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 22 Jun 2008, 8:01 PM
  5. how to distinct editorGrid's cellclick from celldblclick
    By lixiaoxu85 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Apr 2008, 7:13 PM

Thread Participants: 1