I have a grid that have a template column with an anchor to open a window popup when it is click. I need to pass the id of the line where I'm clicking the anchor, but I can get how to pass that value.
I'm attaching my code
@(Html.Kendo().Grid(Model.QuoteRequests)
.Name("MultilineGrid")
.Resizable(resizable => resizable.Columns(true))
.Scrollable()
.EnableCustomBinding(true)
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Multiple))
.Columns(columns => {
columns.Bound(qr => qr.QuoteRequestId).Hidden();
columns.Template(@<text><a href="#" onclick= "OpenNotes(#=QuoteRequestId#)" class = 'k-button k-button-icontext'> Notes </a></text>).Width(100);
}
})
I'm attaching my code
@(Html.Kendo().Grid(Model.QuoteRequests)
.Name("MultilineGrid")
.Resizable(resizable => resizable.Columns(true))
.Scrollable()
.EnableCustomBinding(true)
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Multiple))
.Columns(columns => {
columns.Bound(qr => qr.QuoteRequestId).Hidden();
columns.Template(@<text><a href="#" onclick= "OpenNotes(#=QuoteRequestId#)" class = 'k-button k-button-icontext'> Notes </a></text>).Width(100);
}
})