Hi Christian,
Thanks for contacting Syncfusion support. We are happy to assist you.
Query: Is there a way to activate the update icon directly when loading the grid and always save it immediately?
Be default in batch edit mode, the editing action is works based on the cell. So, the save icon will enable only when the cell focus is out. In order to achieve your requirement we have enabled the save icon using the actionComplete event of ejGrid. Refer the below code,
<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>
|
For your convenience we have prepared a sample which can be downloaded from below link
If we misunderstood your query, get back to us with more details regarding your requirement.
Regards,
Vignesh Natarajan.