Sep 04, 2014, 12:14 PM
[CLOSED] Load grid with another grid data
I have 2 gridpanels GridPanel1 and GridPanel2
In GridPanel2 I have an
Bellow is my code
In GridPanel2 I have an
ImageCommandColumn
I am trying to fill GridPanel1 with the data delete from GridPanel2,Bellow is my code
Html.X().ImageCommandColumn()
.Width(30)
.Commands(
Html.X().ImageCommand()
.Icon(Icon.Decline)
.ToolTip(t =>
{
t.Text = "Delete plant";
})
.CommandName("delete")
)
.Listeners(l => {
l.Command.Handler = "App.GridPanel1.getStore().loadData((App.GridPanel2.getStore().getAt(recordIndex)),true);this.up('gridpanel').store.removeAt(recordIndex);";
})
Last edited by Daniil; Sep 26, 2014 at 12:18 PM.
Reason: [CLOSED]