How we can check Duplicate entries in Gridpanel?

  1. #1

    How we can check Duplicate entries in Gridpanel?

    Hi,

    How we can check duplicate entries in Grid panel?
    Attached Thumbnails Click image for larger version. 

Name:	samplerepeat.JPG 
Views:	408 
Size:	47.0 KB 
ID:	2811  
  2. #2
    Hi,

    These records must have different ids, all other field can be identical.
  3. #3

    How we can check Duplicate entries in Gridpanel?

    Hi,

    In this example Gridpanel records must have same id.
  4. #4
    I don't know why your id must be duplicated,
    but you can call this function to test if a value already exists in a column of your store:

    var duplicated = function(store, colName, value)
    {
        var found = false;
        store.each(function(record)
        {
          if(found = (record.data[colName]==value) ? true : false){return false};
        }
        )
       return found;
    }
    "colName" is the column where find duplicates and "value" is the value you are testing.

Similar Threads

  1. multiple _dc entries
    By whelaro in forum 1.x Help
    Replies: 1
    Last Post: Aug 10, 2012, 3:48 PM
  2. Replies: 8
    Last Post: Dec 16, 2010, 11:10 AM
  3. Replies: 1
    Last Post: Dec 03, 2010, 8:02 PM
  4. [1.0] Radio name attribute duplicate
    By igitur in forum 1.x Help
    Replies: 2
    Last Post: Jul 21, 2010, 11:33 AM
  5. Replies: 2
    Last Post: Mar 21, 2010, 1:18 PM

Posting Permissions