PDA

View Full Version : [CLOSED] ImageCommandColumn confirm message in mvc



matrixwebtech
Jul 18, 2014, 12:20 PM
Html.X().ImageCommandColumn()
.Width(30)

.Commands(
Html.X().ImageCommand()
.Icon(Icon.Bin)
.ToolTip(t =>
{
t.Text = "Delete plant";

})
.CommandName("delete")

)
.Listeners(l =>
{

l.Command.Handler = "this.up('gridpanel').store.removeAt(recordIndex);";

})

how can I add a confirmation message in this ImageCommandColumn, before delete the record the message will show.please suggest some client side example.

Daniil
Jul 18, 2014, 5:48 PM
Hi @matrixwebtech,

Please use a MessageBox's confirm function.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.MessageBox-method-confirm