2013-02-11 74 views
2

我正在使用jQuery UI的自动完成作为multi column autocomplete。该代码是以下Jquery UI多列自动完成下拉列表消失在鼠标悬停上

this.$('[data-sandbar="searchbox"]').mcautocomplete({ 
       showHeader: true, 
       columns: [{ 
        name: 'First Name', 
        width: '70px', 
        valueField: 'value' 
       }, 
         { 
          name: 'Last Name', 
          width: '70px', 
          valueField: 'LastName' 
         }, 
         { 
          name: 'DOB', 
          width: '50px', 
          valueField: 'DOB' 
         }], 


       select: function (event, ui) { 
        window.location.hash = ui.item.name; 
        return false; 
       }, 
       minLength: -1, 
       pageSize: 50, 
       autoFocus: false, 
       source: function (request, response) { 

        self.model.fetch({ 
         data: { 
          searchText: text, 
          sortBy: '', 
          pageNum: 1, 
          pageSize: 50, 
          bHotList: false, 
          sortOrder: 'Desc', 
          patientId: 0, 
          include_entities: true 
         }, 

         success: function (data) { 
          var availableTags = []; 
          $.each(data.attributes, function (val, patient) { 

           if (patient != "" && patient != null) { 

            availableTags[val] = { 
             name: "#patient/" + patient.PatientId, 
             value: patient.FirstName, 
             LastName: patient.LastName, 
             DOB: patient.DOB 

            }; 

           } 
          }); 

          response(availableTags); 

         }, 



         error: function (e) { 
          console.log(e); 

         } 
        }); 
       } 
      }); 

我面对的事情是,当我将鼠标悬停在自动完成下拉鼠标,鼠标悬停在列表显示块更改为无。请帮助...

回答

0

可能是悬停事件是在自动完成多选组合中导致更改为列表的显示属性的注册表。

谢谢。

相关问题