2010-12-15 35 views

回答

1

編輯細胞確實是可能的。

例如,我有一個行定義爲

{name:'Weather', index:'weather', width:150, align:'center', editable:true, edittype:"select", editoptions: {value: "--:Unknown;-1:Rainy;1:Sunny;100:Cloudy;0:Clear"}}, 

有是在像saveCell和editCell您也可以撥打jqGrid的方法。欲瞭解更多信息,請參閱:

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing

+0

我猜測,該行可以通過使用簡單的jQuery方法可以隱藏?如$(「#rowId」)。hide()..謝謝! – sarsnake 2010-12-15 18:04:16

+0

是的,我爲之前使用jqgrid的項目做了類似的事情。歡呼:) – 2010-12-16 01:40:12