Apr 26, 2018, 7:00 PM
Action Link in Grid Table
<div class="code-cut">
@Html.X().ResourceManager()
@(Html.X().GridPanel()
.Title("ComponentColumn Pin Editor")
.Width(600)
.Height(300)
.Store(Html.X().Store()
.Model(Html.X().Model()
.Fields(
new ModelField("ID", ModelFieldType.Int)
)
)
.DataSource(Model)
)
.ColumnModel(
Html.X().ComponentColumn()
.Editor(true)
.OverOnly(true)
.Pin(true)
.DataIndex("ID")
.Flex(1)
.Text("ID")
.Component(Html.X().NumberField()),
.Width(70)
.Commands(
Html.X().GridCommand()
.CommandName("Delete")
.Icon(Icon.Delete)
.StandOut(true)
.ToolTip(tt => tt.Text = "Delete"),
Html.X().GridCommand()
.CommandName("Edit")
.Icon(Icon.NoteEdit)
.StandOut(true)
.ToolTip(tt => tt.Text = "Edit"),
Html.X().GridCommand()
.CommandName("Edit")
.Icon(Icon.NoteEdit)
.StandOut(true)
.ToolTip(tt => tt.Text = "Edit")
)
.Listeners(ls => ls.Command.Handler = "Ext.Msg.alert(command, record.data.company);")
)
)
</div>
}
I need use link to Action in column.