<script type="text/javascript">
$(function () {
var Data = [{ "text": "John Doe", "value": "1" }, { "text": "Nick Halden", "value": "2" }, { "text": "James Coleman", "value": "3" }];
$(function () {
$("#Grid").ejGrid({
dataSource: ej.DataManager({
url: "/Grid/UrlDataSource",
insertUrl: "/Grid/Insert",
updateUrl: "/Grid/Update",
removeUrl: "/Grid/Delete",
adaptor: "UrlAdaptor"
}),
. . . . .
{ field: "EmployeeID", headerText: 'Employee ID', editType: ej.Grid.EditingType.Dropdown, foreignKeyField: "value", foreignKeyValue: "text", textAlign: ej.TextAlign.Right, width: 80, dataSource: Data },
,
. . . . .
]
});
}); </script> |
|