Hi Lorfra,
Greetings from Syncfusion Support.
Query#:- how I can hide or remove "Save" button
on Grid's Dialog Template?
We have achieved your requirement using ActionComplete
Event of the Grid. In this event, we have hide the Save button when requestType
as “beginedit or add”.
Refer to the code below:-
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" AllowGrouping="true">
<EditSettings AllowAdding="true" AllowEditing="true" EditMode="DialogTemplate" DialogEditorTemplateID="#template" />
. . . .
. . . .
<ClientSideEvents ActionComplete="complete"></ClientSideEvents>
</ej:Grid>
<script type="text/javascript">
function complete(args) {
if (args.requestType == "beginedit") {
$("#EditDialog_" + this._id + "_Save").hide() //this_id returns Grid id
}
</script>
|
API link:- https://help.syncfusion.com/api/js/ejgrid#events:actioncomplete
Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T
If this post is helpful, please consider
Accepting it as the solution so that other members can locate it more quickly