我在使用自定义列添加到我的订单网格时使用布局句柄。如何禁用过滤输入字段?
以下是我的代码: app / design / adminhtml / default / default / layout / company
<?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>
答案 0 :(得分:0)
使用false值将过滤器参数添加到参数中:
<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>