1
基於此thread,我試圖從編輯的行/單元中獲取舊值和新值。但總是rowIndex爲空。我怎樣才能得到這個值?還有另外一種方法在服務器端捕獲這些信息?Ext.net行編輯舊值和新值
這是我的網格。謝謝!
<ext:GridPanel runat="server"
Frame="true"
Layout="FitLayout"
MarginSpec="5 0 5 0"
ID="Janelas01">
<Store>
...
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
...
<ext:Column runat="server"
DataIndex="Meta"
Text="Meta/H"
Flex="1"
Align="Center">
<Editor>
<ext:NumberField
runat="server"
AllowBlank="false"
AllowDecimals="true"
Step="0.01">
</ext:NumberField>
</Editor>
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel runat="server" />
</SelectionModel>
<Plugins>
<ext:RowEditing runat="server">
<Listeners>
<BeforeEdit Handler="this.oldValues = Ext.net.clone(this.grid.getStore().getAt(rowIndex).data);" />
</Listeners>
<DirectEvents>
<Edit OnEvent="GridPanel_AfterEdit">
<ExtraParams>
<ext:Parameter Name="old" Value="this.oldValues" Mode="Raw" Encode="true" />
<ext:Parameter Name="new" Value="this.grid.getStore().getAt(rowIndex).data" Mode="Raw" Encode="true" />
</ExtraParams>
</Edit>
</DirectEvents>
</ext:RowEditing>
</Plugins>
</ext:GridPanel>