Hi Dayne,
Thanks for contacting Syncfusion support.
We have analyzed your query and achieved your requirement by using recordClick event in grid.
Please refer the below code example.
[Index.cshtml]
@(Html.EJ().Grid<object>("FlatGrid")
…
.Columns(col =>
{
…
})
.ClientSideEvents(eve=> eve.RecordClick("click"))
)
<script type="text/javascript">
function click(args) {
if (this.model.editSettings.editMode == "normal") {
this.startEdit(args.row); //trigger to edit the row
}
}
</script> |
In the above code example, we have done inline editing for grid while single click the record by calling the startEdit method in recordClick event of grid.
We have also prepared a sample that can be downloaded from the below link.
Note: It is not feasible to set the inline editing in a single click. If you need to edit a record in a single click, then we suggest you to use batchEditing which is similar to excel like editing.
Please refer the documentation link and online sample link.
Also please refer the documentation link for the following events.
Please let us know if you need further assistance.
Regards,
Manisankar Durai.