<ejs-grid id="Grid" dataSource="@ViewBag.DataSource" allowPaging="true" locale="en-US" allowGrouping="true" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editSettings>
<e-grid-pagesettings pageCount="6"></e-grid-pagesettings>
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" width="120"></e-grid-column>
<e-grid-column field="CustomerID" headerText="Customer Name" width="150"></e-grid-column>
<e-grid-column field="ShipCity" headerText="Ship City" width="170"></e-grid-column>
<e-grid-column field="ShipCountry" headerText="Ship Country" width="150"></e-grid-column>
</e-grid-columns>
</ejs-grid>
<script>
ej.base.L10n.load({
'en-US': {
'grid': {
// change the default text used in the grid as you want
'Add': 'New',
'Edit': 'Modify',
'Cancel': 'Back',
'Update': 'Save',
'Delete': 'Remove',
}
}
});
</script>
|