<div id="Grid"></div>
<ej:Grid ID="FlatGrid" runat="server" AllowPaging="true">
<ClientSideEvents ActionComplete="actionComplete" />
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="Batch"></EditSettings>
<ToolbarSettings ShowToolbar="true" ToolbarItems=" update,cancel,search"></ToolbarSettings>
<Columns>
<ej:Column Field="Verified" HeaderText="check" EditType="BooleanEdit" Width="50"/>
<ej:Column Field="OrderID" IsPrimaryKey="true"/>
<ej:Column Field="CustomerID" />
<ej:Column Field="EmployeeID"/>
<ej:Column Field="ShipCity"/>
<ej:Column Field="ShipCountry"/>
</Columns>
</ej:Grid>
<script>
function actionComplete(args) {
//Gets the ToolBar.
var $toolbar = $("#" + this._id + "_toolbarItems");
//Gets the update tool.
var li = $("#" + this._id + "_update");
// enable the update tool.
$toolbar.ejToolbar("enable" + "Item", li);
}
</script>
|