@(Html.EJ().Grid<object>("Grid")
.Datasource((IEnumerable<object>)ViewBag.data)
.AllowPaging()
.Locale("en-US")
..
.Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add();
..
col.Field("ShipCity").HeaderText("Ship City").Width(80).Add();
})
)
<script type="text/javascript">
ej.Grid.Locale["en-US"]["BatchSaveConfirm"] = " changed Text"; // here you change your text instead of "Are you sure you want to save changes?"
ej.Grid.Locale["en-US"]["BatchSaveLostChanges"] = " changed Text"; // here you change your text instead of "Unsaved changes will be lost. Are you sure you want to continue?"
ej.Grid.Locale["en-US"]["CancelEdit"] = " changed Text"; // here you change your text instead of "Are you sure you want to Cancel the changes?"
</script>
|