Hi,
When running the Create, Read, Update, Destroy events. I want to pass in the value of $("MasterAccountID") to the controller. I can't figure out how to do with, without writing the JavaScript manually.
When running the Create, Read, Update, Destroy events. I want to pass in the value of $("MasterAccountID") to the controller. I can't figure out how to do with, without writing the JavaScript manually.
<
input
type
=
"textbox"
name
=
"MasterAccountID"
id
=
"MasterAccountID"
/>
@(Html.Kendo().Grid<
Ownership
>() // Specify the type of the grid
.Name("Ownership")
.Columns(columns =>
{
columns.Bound(o => o.AccountName);
columns.Bound(o => o.AccountNumber);
columns.Bound(o => o.Percent);
columns.Bound(o => o.Status);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(true)
.PageSize(20)
.Model(model =>
{
model.Id(o => o.AccountNumber);
})
.Read(read => read.Action("Ownership_Read", "Owner", [PASS TEXTBOX VALUE]))
)
)