<Grid>
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowScrolling()
.AllowPaging() /*Paging Enabled*/
.SelectionType(SelectionType.Single)
.EditSettings(edit=>{edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Batch); })
. . .
.ClientSideEvents(eve=>eve.Create("create"))
.Columns(col =>
{
. . .
}))
<Create Event>
function create(args) {
args.model.keyConfigs.downArrow = ""; //Remove the default Fucntionalities
args.model.keyConfigs.upArrow = "";//Remove the default Fucntionalities
args.model.keyConfigs.moveCellLeft = "shift+9,38"; // Using uparrow to move cell left
args.model.keyConfigs.moveCellRight = "9,40"; //Using down arrow to move cell right
} |