Blog

CUSTOM LOOKUP FILTER

$(document).ready(function() {  
  var productid=null; 
 var list = $("#parentcustomerid_lookupmodal").find(".entity-lookup").find(".entity-grid").eq(0);   
 list.on("loaded", function() {                    
 list.find("table tbody > tr").each(function() {   
   
          var tr = $(this); 
productid= tr.data().id;
var productGuids = getProductsGuids();        
        
   if($inArray(productid,productGuids === -1) {      
              tr.hide();    
            }         
   });       
   
 });});

Leave a Reply