2013-02-18 29 views
1

是否有任何示例方式來告訴Ext.NET組合框顯示用戶命中輸入自動完成可用值。
I really like advanced search sample of Ext.net combo box sample .在我的自定義中,我從SQL中進行數據存儲,並且爲了搜索而進行查詢非常繁瑣,以至於無法自動觸發結果集。 我的想法是允許用戶輸入查詢字符串,並按Enter或任何熱鍵,然後做邏輯從sql獲取數據,並允許用戶選擇顯示網格中的可用項目?EXT.Net自定義搜索組合框觸發用戶命中ENTER

我的環境是.NET4,ASP.NET,WebForms的,Ext.Net V2

回答

0

Our colleges from Ext.Net helped me to solve problem

<ext:ComboBox 
    runat="server" 
    DisplayField="Common" 
    ValueField="Common" 
    TypeAhead="false" 
    Width="570" 
    PageSize="10" 
    HideBaseTrigger="true" 
    MinChars="10000" 
    TriggerAction="Query"> 
    ... 
    <Listeners> 
     <SpecialKey Handler=" 
     if (e.getKey() == e.ENTER) { 
      this.doQuery(this.getValue(), true); 
     }"></SpecialKey> 
    </Listeners> 
</ext:ComboBox>