@(Html.EJ().Grid<SyncfusionMvcApplication6.Models.Orderable>("GridContainer")
//.Datasource(ds => ..
.Columns(col =>
{
col.Field("OrderID").HeaderText("ID").IsPrimaryKey(true).Add();
col.Field("CustomerID").HeaderText("Name").Add();
col.Field("EmployeeID").HeaderText("Order").Add();
}).ClientSideEvents(eve=>eve.RowDragStart("rowdragstart"))
)
<script type="text/javascript">
function rowdragstart(args) {
this.model.sortSettings.sortedColumns = [];
}
</script> |