Jul 09, 2012, 8:06 PM
[CLOSED] Reading grid in the server
To read grids values posted back to the server, we do the following:
Put this javascript in the event that will cause the postback, i.e. button click:
Isn't there a way to read the store or the grid data directly, the same way i can read a TextField?
Put this javascript in the event that will cause the postback, i.e. button click:
<ext:Button ID="btExcluir" runat="server" SkinID="btExcluirSkin">
<DirectEvents>
<Click>
<ExtraParams>
<ext:Parameter Name="Perfis" Value="Ext.encode(#{gvPerfis}.getRowsValues({selectedOnly:false}))"
Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
And in the server we do this to get the value:string jsonPerfis = e.ExtraParams["Perfis"];
PerfilAcesso[] rowsPerfis = JSON.Deserialize<PerfilAcesso[]>(jsonPerfis);
Is there an easier approach to get the values from a store in the server without using javascrpit in each event and JSON?Isn't there a way to read the store or the grid data directly, the same way i can read a TextField?
Last edited by Daniil; Jul 16, 2012 at 9:46 PM.
Reason: [CLOSED]