@(Html.EJ().Grid<object>("Editing")
……………………………………………….
………………………………………
.Columns(col => {
………………………………..
col.Field("EmployeeID").HeaderText("Employee ID").ForeignKeyField("EmployeeID").ForeignKeyValue("FirstName")
.DataSource(ds => ds.URL("/Grid/ColumnData").Adaptor(AdaptorType.UrlAdaptor)).AllowEditing(true)
.EditType(EditingType.DropdownEdit)
.FilterType(FilterOption.Excel)
……………………………………………………..
})
)
public ActionResult ColumnData(DataManager value)
{
…………………………………………………..
}
|