/**
  * Name of function came from listpage class, but on listpage_lookup it used for collection link and display field data
  *
  * @param String type
  * @param Array &record
  * @param Array data (optional)
  */
 function addSpansForGridCells($type, &$record, $data = null)
 {
     if ($type == 'add') {
         parent::addSpansForGridCells($type, $record, $data);
         return;
     }
     if (!is_null($data)) {
         if ($this->dispFieldAlias) {
             $dispVal = $data[$this->dispFieldAlias];
         } else {
             $dispVal = $data[$this->dispField];
         }
         $this->lookupValuesArr[] = array('linkVal' => $data[$this->linkField], 'dispVal' => $dispVal);
     }
 }