我在Ext JS文档中看到了一个功能 - http://dev.sencha.com/deploy/ext-4.0.1/examples/grid/locking-grid.html。我们可以通过根据文档设置“锁定”选项来锁定列,但是当我在Netzke Grid中执行此操作时,网格消失。有没有具体的方法来实现这一目标。下面给出了示例代码,
def configure(c)
super
c.model = "Product"
c.title = "Product List"
c.columns = [
{
:name => :name,
:text => "Name",
:read_only => true,
:locked => true
},
{
:name => :price,
:text => "Price"
},
{
:name => :date,
:text => "Date"
}
]
end