PDA

View Full Version : [CLOSED] [MIGRATION] getting selected rows values with id of data item



ViDom
Jun 26, 2013, 12:13 PM
Hi,
I've done this like this in my application using v1.6 of Ext.Net version:
markup:


<ext:Button runat="server" ID="btnChoose" Visible="False" Text="Choose" Icon="Add" Height="26" Width="75">
<DirectEvents>
<Click OnEvent="btnChoose_Click" ShowWarningOnFailure="False" Timeout="60000">
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{GridPanelMain}.getRowsValues({selecte dOnly : true}))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>

codebehind:


protected void btnChoose_Click(object sender, DirectEventArgs e)
{
string json =e.ExtraParams["Values"];//it contains Id field of Item
}


The same code in Ext.Net v2.2 doesn't return Id field in json any more.
How can I handle this in v2.2?

Thanks,
ViDom

ViDom
Jun 26, 2013, 12:37 PM
It's start working o_O

So thread can be closed.