Jun 09, 2013, 9:32 AM
[CLOSED] How can I make ImageCommandColumn pass a Parameter
this is a gridpanel ,in the gridpanel,have a ImageCommandColumn ,I want to pass a parameter which name is 'parentcode',
this is my code.
this is my code.
<ext:ImageCommandColumn runat="Server">
<Commands>
<ext:ImageCommand runat="Server" CommandName="Add" Icon="TableEdit" Text="Add"></ext:ImageCommand>
</Commands>
<DirectEvents>
<Command OnEvent="OnAdd_Click">
<ExtraParams>
<ext:Parameter runat="Server" Name="parentcode" Value="record.data.ParentCode" Mode="Raw"></ext:Parameter>
</ExtraParams>
</Command>
</DirectEvents>
</ext:ImageCommandColumn>
if (Request.Params["parentcode"]==null)
{
ParentCode.Text="顶级科目";
}
but I can't get the parameter
Last edited by Daniil; Jun 18, 2013 at 3:53 AM.
Reason: [CLOSED]