2014-07-08 40 views
0

我有一個問題與gridfilters插件ExtJS的gridfilters

«濾波器»選項是可見的,但對於篩選選項的子菜單是不可見的 我有這個警告在控制檯 「非浮動元件的使用showBy 「

網格的定義是:

   xtype: 'grid', 
       store: store, 
       iconCls: 'icon-grid', 
       frame: true, 
       width: 700, 
       height: 500, 

       dockedItems: [{ 
        xtype: 'pagingtoolbar', 
        store: store, // mismo que el store GridPanel 
        dock: 'bottom', 
        displayInfo: true 
       }], 
       plugins:  ['gridfilters'], 
       columns: [ 
          {header: 'Company',dataIndex: 'company', flex: 1, 
           filter: 
           { 
            type: 'string', 
            itemDefaults: { 
             emptyText: 'Search for...' 
            } 
           }, 
           editor: { 
            xtype: 'textfield' 
           } 

          }, 
          {header: 'Price',dataIndex: 'price', flex: 1, 
           filter: 'number' 
          }, 
          {header: 'Change',dataIndex: 'change', flex: 1}, 
          {header: 'Last change',dataIndex: 'lastChange',xtype: 'datecolumn', format:'d/m/Y', flex: 1} 


         ] 

你能幫我這點?

+0

您發佈的代碼看起來正確的第一眼。問題必須在別處。你可以在https://fiddle.sencha.com上創建問題的演示嗎? – Saki

回答

0

嘗試使用的功能屬性,而不是插件之一,如下:

features: { 
    ftype: 'filters', 
    encode: true, 
    local: false 
}