We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How I can hide or remove "Save" button on Grid's Dialog Template


how I can hide or remove "Save" button text on Grid's Dialog Template?



1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 17, 2022 03:05 PM UTC

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>



<script type="text/javascript">


      function complete(args) {

          if (args.requestType == "beginedit") {

              $("#EditDialog_" + this._id + "_Save").hide()    //this_id  returns Grid id



API link:- https://help.syncfusion.com/api/js/ejgrid#events:actioncomplete

Please get back to us if you need any further assistance.

Farveen sulthana T

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly

Live Chat Icon For mobile
Up arrow icon