Nov 06, 2010, 8:55 PM
[1.0] Selected Record in a GridPanel
Hi,
I have the following code in a gridpanel:
Ext.encode(#{gridp}.getRowsValues() returns all the rows of the grid (and not only selected row).
What can i do?
I have the following code in a gridpanel:
<ext:GridPanel ID="gridp" runat="server" StoreID="store_empl" StripeRows="true"
TrackMouseOver="true" AutoExpandColumn="name">
<ColumnModel runat="server">
<Columns>
<ext:Column ColumnID="code" Header="Code" DataIndex="getCode" />
<ext:Column ColumnID="name" Header="Name" DataIndex="getName" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
<DirectEvents>
<RowSelect OnEvent="RowSelect">
<ExtraParams>
<ext:Parameter Name="SelectedRecord" Value="Ext.encode(#{gridp}.getRowsValues())" Mode="Raw" />
</ExtraParams>
</RowSelect>
</DirectEvents>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>
This works fine on version 0.8.2 but it doesn't work in Ext.NET (v. 1.0).Ext.encode(#{gridp}.getRowsValues() returns all the rows of the grid (and not only selected row).
What can i do?
Last edited by walle; Nov 07, 2010 at 6:24 PM.