Feb 08, 2017, 6:08 PM
rowIndex as parameter on CommandColumn
How a get the rowIndex to pass as parameter on the example bellow?
<ext:CommandColumn runat="server" Align="Center">
<Commands>
<ext:GridCommand ToolTip-Text="Editar" Icon="NoteEdit" CommandName="Edit" />
<ext:GridCommand ToolTip-Text="Excluir" Icon="Delete" CommandName="Delete" />
</Commands>
<DirectEvents>
<Command OnEvent="grpTratamentos_Command">
<Confirmation Title="Exclusão de procedimento" Message="Tem certeza que deseja excluir o procedimento selecionado?" BeforeConfirm="if (command!='Delete') return false;" ConfirmRequest="true" />
<ExtraParams>
<ext:Parameter Name="command" Value="command" Mode="Raw" />
<ext:Parameter Name="codPacienteProcedimento" Value="record.data.CN_Paciente_Procedimento" Mode="Raw" />
<ext:Parameter Name="idRowClicked" Value="rowIndex" Mode="Raw" />
</ExtraParams>
</Command>
</DirectEvents>
</ext:CommandColumn>