Apr 05, 2011, 10:09 PM
[CLOSED] GridPanel, SelectedRow and RowSelectionModel : Is JsonReader required to get selected row in server code?
Hey,
I have previously used the following code to get the selected row on the server side:
Is there any way of getting the selected row in a GridPanel when using an ArrayReader?
I have previously used the following code to get the selected row on the server side:
RowSelectionModel sm = GridPanel2.SelectionModel.Primary as RowSelectionModel;
if (sm.SelectedRow != null)
{
// do something
}
In that case the store for GridPanel2 uses a JsonReader. If I use the same code, but instead of a JsonReader for the Store I use an ArrayReader, it wont work: <ext:Store ID="Store1" runat="server">
<Reader >
<ext:ArrayReader IDProperty="Nbr">
<Fields>
<ext:RecordField Name="Nbr"></ext:RecordField>
<ext:RecordField Name="Stuff"></ext:RecordField>
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
I just want to confirm that I cannot use the server side code as specified aboive if I do not use a JsonReader for the Store?Is there any way of getting the selected row in a GridPanel when using an ArrayReader?
Last edited by Daniil; Apr 09, 2011 at 12:55 PM.
Reason: [CLOSED]