Feb 03, 2009, 6:51 AM
GridPanel getting Cell Values in RowSelection
I have used the following code from the 'Selection Models > RowSelection' example but it does not work for my Grid
I have checked the code in my application and there is one difference and I need to know if this is the reason.
Because the data in my Grid is dependant on a composite key (i.e. two columns make up the unique ID) I do not have a ReaderID value on my Store so when I select a row I need to get the values of the two ID cells. Would this stop it working? If so what other way can I get the values of these cells?
<ext:Button runat="server" Text="Submit selection">
<AjaxEvents>
<Click OnEvent="SubmitSelection">
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues())" Mode="Raw" />
</ExtraParams>
</Click>
</AjaxEvents>
</ext:Button>
e.ExtraParams["Value"] contains nothing.I have checked the code in my application and there is one difference and I need to know if this is the reason.
Because the data in my Grid is dependant on a composite key (i.e. two columns make up the unique ID) I do not have a ReaderID value on my Store so when I select a row I need to get the values of the two ID cells. Would this stop it working? If so what other way can I get the values of these cells?