cle*_*lem 5 grid admin input magento magento-1.9
我在 magento 中使用网格来显示表格的内容。该表有一个位置列,我正在根据其中的值对内容进行排序。
此位置列在网格中显示为类型输入:
$this->addColumn('position', array(
'header' => Mage::helper('postcard')->__('Position'),
'align' =>'left',
'index' => 'position',
'type' => 'input',
'width' => '100',
'sortable' => true,
));
Run Code Online (Sandbox Code Playgroud)
如何为所有行提交这些列的值?我尝试使用批量操作,但只提交所选行的 ID 而不是位置列。有没有其他方法可以做到这一点?