2017-10-04 165 views
0

我在將自定義列添加到我的訂單網格中時使用了佈局控制柄。我如何禁用過濾輸入字段?在Magento中的銷售訂單網格中的自定義列中禁用篩選器

這裏是我的代碼:應用程序/設計/ adminhtml /默認/缺省/佈局/公司

<?xml version="1.0"?> 
<layout> 
<sales_order_grid_update_handle> 
<reference name="sales_order.grid"> 
    <action method="addColumnAfter"> 
     <columnId>printed</columnId> 
     <arguments> 
      <header>Printed</header> 
      <index>printed</index> 
      <width>80</width> 
      <renderer>Company_myModule_Block_Adminhtml_Sales_Order_Renderer_Printed</renderer> 
      <type>text</type> 
     </arguments> 
     <after>status</after> 
    </action> 
</reference> 
</sales_order_grid_update_handle> 
<adminhtml_sales_order_grid> 
<!-- apply layout handle defined above --> 
<update handle="sales_order_grid_update_handle" /> 
</adminhtml_sales_order_grid> 
<adminhtml_sales_order_index> 
<!-- apply layout handle defined above --> 
<update handle="sales_order_grid_update_handle" /> 
</adminhtml_sales_order_index> 
</layout> 

enter image description here

回答

0

添加到您的參數的過濾器參數與假值:

<arguments> 
      <header>Printed</header> 
      <index>printed</index> 
      <width>80</width> 
      <renderer>Company_myModule_Block_Adminhtml_Sales_Order_Renderer_Printed</renderer> 
      <type>text</type> 
      <filter>false</filter> 
</arguments> 
+0

此過濾器參數是我認爲無效。它只是顯示一個白頁。 – Lester

相關問題