Jun 07, 2013, 11:24 AM
calling the direct method inside the ImageCommandColumn
Is there a way to call SetTimeStamp directly inside the ImageCommandColumn? I tried App.direct.SetTimeStamp(); inside the <Listeners><Command handler but it didn't work .
Plus, is it possible to make a confirmation before raise direct event inside imagecommandcolum?
Thank you
Plus, is it possible to make a confirmation before raise direct event inside imagecommandcolum?
Thank you
[DirectMethod]
protected void SetTimeStamp(object sender,ImageCommandColumnDirectEvents e)
{
X.MessageBox.Notify("asd", "asdsc");
}
<ext:ImageCommandColumn ID="ImageCommandColumn2" runat="server" Width="30" Sortable="false">
<Commands>
<ext:ImageCommand Icon="Decline" ToolTip-Text="Delete Plant" CommandName="delete">
</ext:ImageCommand>
</Commands>
<Listeners>
<Command Handler="this.up('gridpanel').store.removeAt(recordIndex);" />
</Listeners>
</ext:ImageCommandColumn>